-
I played around a bit and came accross the following case where for the Code sample in pyright playground type X[T=int, T2] = None # Wrong order, shows expected error
type Y[T=int, T2] = ... # no error |
Beta Was this translation helpful? Give feedback.
Answered by
erictraut
Oct 1, 2024
Replies: 1 comment
-
Pyright should be emitting an error here because This will be addressed in the next release. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Daraan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pyright should be emitting an error here because
...
is an invalid type expression. It's internally detecting this error condition (without reporting it) and then skipping additional checks for the remainder of thetype
expression, which is why you don't see the other error that you expected.This will be addressed in the next release.