mirror of https://github.com/astral-sh/ruff
complete TODO
Signed-off-by: 11happy <bhuminjaysoni@gmail.com>
This commit is contained in:
parent
783e755fe3
commit
723b514912
|
|
@ -424,9 +424,8 @@ p3 = ParamSpecWithDefault4[[int], [str]]()
|
||||||
reveal_type(p3.attr1) # revealed: (int, /) -> None
|
reveal_type(p3.attr1) # revealed: (int, /) -> None
|
||||||
reveal_type(p3.attr2) # revealed: (str, /) -> None
|
reveal_type(p3.attr2) # revealed: (str, /) -> None
|
||||||
|
|
||||||
# TODO: error
|
|
||||||
# Un-ordered type variables as the default of `PAnother` is `P`
|
# Un-ordered type variables as the default of `PAnother` is `P`
|
||||||
class ParamSpecWithDefault5(Generic[PAnother, P]):
|
class ParamSpecWithDefault5(Generic[PAnother, P]): # error: [invalid-type-param-order]
|
||||||
attr: Callable[PAnother, None]
|
attr: Callable[PAnother, None]
|
||||||
|
|
||||||
# TODO: error
|
# TODO: error
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue