✏️ 正在编辑: nested_sequence.pyi
路径:
/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/typing/tests/data/fail/nested_sequence.pyi
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
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
💾 保存文件
← 返回文件管理器