| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
|
||
| def func_c4( | ||
| a: ClassC4, | ||
| a: ClassC4, # E: Missing type parameters for generic type "ClassC4[()]" |
There was a problem hiding this comment.
Why the [()] part?
Sorry, something went wrong.
There was a problem hiding this comment.
Adjusted the type formatting to better handle this case. It was just checking if the instance has a TypeVarTuple and assumed that it's the only TypeVar -> thus printing () for an empty tuple.
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks!
Sorry, something went wrong.
|
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅ |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Similar to TypeAlias types Missing type parameters for generic type should not be emitted if too many arguments are given. There is a separate error message for that.
Ref: #14851