File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
from __future__ import annotations
3
3
4
4
import itertools
5
+ import sys
5
6
import uuid
6
7
import warnings
7
8
from pathlib import Path
29
30
from _pytask .typing import ProductType
30
31
from attrs import define
31
32
from attrs import field
32
- from typing_extensions import Annotated
33
33
from typing_extensions import get_origin
34
34
35
+ if sys .version_info >= (3 , 9 ):
36
+ from typing import Annotated
37
+ else :
38
+ from typing_extensions import Annotated
35
39
36
40
if TYPE_CHECKING :
37
41
from _pytask .session import Session
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def task(
74
74
75
75
.. code-block:: python
76
76
77
- from typing_extensions import Annotated
77
+ from typing import Annotated
78
78
from pytask import task
79
79
80
80
@task
You can’t perform that action at this time.
0 commit comments