mirror of
https://github.com/astral-sh/ruff
synced 2026-01-07 22:54:28 -05:00
[syntax-error] Default type parameter followed by non-default type parameter (#21657)
## Summary This PR implements syntax error where a default type parameter is followed by a non-default type parameter. https://github.com/astral-sh/ruff/issues/17412#issuecomment-3584088217 ## Test Plan I have written inline tests as directed in #17412 --------- Signed-off-by: 11happy <bhuminjaysoni@gmail.com> Signed-off-by: 11happy <soni5happy@gmail.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
class C[T = int, U]: ...
|
||||
class C[T1, T2 = int, T3, T4]: ...
|
||||
type Alias[T = int, U] = ...
|
||||
Reference in New Issue
Block a user