You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
427 B
17 lines
427 B
from collections.abc import Sequence
|
|
from numpy._typing import _NestedSequence
|
|
|
|
a: Sequence[float]
|
|
b: list[complex]
|
|
c: tuple[str, ...]
|
|
d: int
|
|
e: str
|
|
|
|
def func(a: _NestedSequence[int]) -> None:
|
|
...
|
|
|
|
reveal_type(func(a)) # E: incompatible type
|
|
reveal_type(func(b)) # E: incompatible type
|
|
reveal_type(func(c)) # E: incompatible type
|
|
reveal_type(func(d)) # E: incompatible type
|
|
reveal_type(func(e)) # E: incompatible type
|
|
|