-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
@contextmanager type hints don't pass through from decorated function #5014
Comments
PEP 612 is not supported yet in typeshed. See #4827. |
Is there anything I can do to help out? |
It seems that mypy already has a PR (python/mypy#8645), maybe @hauntsaninja can give some insight here. google/pytype#786 makes it sound as if there could be a simple solution to at least partially support (or at least not block) PEP 612 in pytype. Maybe @rchen152 could give some pointers. |
Sorry for the slow response - somehow missed the notification for this comment. I'll try to add some minimal parse support for PEP 612 to pytype. (I'll probably just map everything to Any under the hood.) |
I am going to close this for now, as is standard for issues labeled "inexpressible". We can revisit this when PEP 612 is implemented in supported type checkers. |
PEP 612 is not mostly implemented, so this can be revisited. Reopening. |
This is fixed. |
Per this issue, it appears that the stub for contextmanager has not been updated for PEP612 so type hints aren't showing for the underlying function arguments.
The text was updated successfully, but these errors were encountered: