Open jorenham opened 2 weeks ago
some problems with the contextlib types
contextlib
AbstractContextManager
AbstractAsyncContextManager
abc
collections.,abc
@contextmanager
_GeneratorContextManager
AbstractContextManager & ContextDecorator
some problems with the
contextlib
typesAbstractContextManager
andAbstractAsyncContextManager
are ridiculously verbose, and have the sameabc
issues ascollections.,abc
@contextmanager
returns a_GeneratorContextManager
, which is roughly equivalentAbstractContextManager & ContextDecorator