You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to provide a typed interface for async_contextmanager from asyncio_extras in my codebase, and I thought I'd use an overload to address the issue of being arity-agnostic.
obs/async_contextmanager.py:14: error: Overloaded function signatures 1 and 2 overlap with incompatible return types
obs/async_contextmanager.py:23: error: Function is missing a type annotation
How can I provide an accurate signature here?
The text was updated successfully, but these errors were encountered:
I'm trying to provide a typed interface for
async_contextmanager
fromasyncio_extras
in my codebase, and I thought I'd use an overload to address the issue of being arity-agnostic.I tried this:
And I get
How can I provide an accurate signature here?
The text was updated successfully, but these errors were encountered: