We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
typing-extensions
1 parent 17c5fb8 commit ee5b2cfCopy full SHA for ee5b2cf
requirements-tests.txt
@@ -1,6 +1,7 @@
1
-e .
2
3
pytest >=8.3.5
4
+typing-extensions; python_version < "3.9"
5
coverage[toml] >=7.6.1
6
mypy ==1.14.1
7
ruff ==0.14.3
tests/test_main.py
@@ -1,9 +1,13 @@
import pickle
-
-from typing_extensions import Annotated, get_type_hints
+import sys
from annotated_doc import Doc
+if sys.version_info >= (3, 9):
+ from typing import Annotated, get_type_hints
8
+else:
9
+ from typing_extensions import Annotated, get_type_hints
10
+
11
12
def test_doc_basic() -> None:
13
doc = Doc("This is a test documentation.")
0 commit comments