-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
update inspect.pyi to use typevars with generics #5658
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Seems like this is stuck on ParamSpec support in mypy. |
According to #4827 ParamSpec should "work" if you use |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Diff from mypy_primer, showing the effect of this PR on open source code: graphql-core (https://github.com/graphql-python/graphql-core.git)
- src/graphql/subscription/subscribe.py:89: error: unused "type: ignore" comment
- tests/execution/test_sync.py:61: error: Redundant cast to "Awaitable[Any]"
paasta (https://github.com/yelp/paasta.git)
+ paasta_tools/deployd/master.py:115: error: Incompatible return value type (got "List[Type[_T]]", expected "List[Type[PaastaWatcher]]")
|
You'll need to sprinkle in some |
This has a lot of conflicts now. I think much of this change was implemented in other PRs. |
Going to close this as stale for now to keep the list of open PRs manageable. If you're still interested in seeing this through, feel free to reopen or open a new PR. |
Updated some inspect.is* function to use typevars with the generics when a typeguard is involved.