Parametrized generics' type arguments are not expanded during overload evaluation #9794
InSyncWithFoo
started this conversation in
General
Replies: 1 comment
-
We're putting significant effort into standardizing the behavior and specifying it in detail. If you want pyright and other type checkers to support this, it needs to be in the spec and covered by the conformance test suite. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Minimal reproducible example (playground):
Adding a third
(self) -> int | str
overload helps with the error.I understand this case is not explicitly listed in the proposed changes. However, would it be reasonable to ask that Pyright support it?
Beta Was this translation helpful? Give feedback.
All reactions