Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a contextlib alternative #159

Open
jorenham opened this issue Oct 11, 2024 · 0 comments
Open

a contextlib alternative #159

jorenham opened this issue Oct 11, 2024 · 0 comments

Comments

@jorenham
Copy link
Owner

some problems with the contextlib types

  • AbstractContextManager and AbstractAsyncContextManager are ridiculously verbose, and have the same abc issues as collections.,abc
  • @contextmanager returns a _GeneratorContextManager, which is roughly equivalent AbstractContextManager & ContextDecorator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant