관리-도구
편집 파일: nested_sequence.pyi
from collections.abc import Sequence from typing import Any from numpy._typing import _NestedSequence a: Sequence[int] b: Sequence[Sequence[int]] c: Sequence[Sequence[Sequence[int]]] d: Sequence[Sequence[Sequence[Sequence[int]]]] e: Sequence[bool] f: tuple[int, ...] g: list[int] h: Sequence[Any] def func(a: _NestedSequence[int]) -> None: ... reveal_type(func(a)) # E: None reveal_type(func(b)) # E: None reveal_type(func(c)) # E: None reveal_type(func(d)) # E: None reveal_type(func(e)) # E: None reveal_type(func(f)) # E: None reveal_type(func(g)) # E: None reveal_type(func(h)) # E: None reveal_type(func(range(15))) # E: None