Skip to content

Commit d53df7d

Browse files
committed
mypy
1 parent 20f9f8b commit d53df7d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ttest.pyi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from collections.abc import Hashable, Sequence
2+
from typing import TypeAlias, TypeVar
3+
4+
HashableT = TypeVar("HashableT", bound=Hashable)
5+
6+
VType: TypeAlias = Hashable | Sequence[HashableT]
7+
8+
def foo(p: VType[Hashable]) -> None: ...

0 commit comments

Comments
 (0)