Skip to content

Commit 29a9827

Browse files
committed
Export the types that _typing.py imports and makes available
Mostly adding this so that it turns this: $ poetry run mypy --strict binding.py binding.py:8: error: Module "textual._typing" does not explicitly export attribute "TypeAlias" [attr-defined] Found 1 error in 1 file (checked 1 source file) into this: $ poetry run mypy --strict binding.py Success: no issues found in 1 source file
1 parent a8c3018 commit 29a9827

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/textual/_typing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@
99
from typing import Final, Literal, Protocol, TypedDict
1010
else:
1111
from typing_extensions import Final, Literal, Protocol, TypedDict
12+
13+
__all__ = ["TypeAlias", "Final", "Literal", "Protocol", "TypedDict"]

0 commit comments

Comments
 (0)