File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 2
2
requires = [
3
3
" setuptools>=45" ,
4
4
" tomli>=1.0" ,
5
- " packaging>=20.0"
5
+ " packaging>=20.0" ,
6
+ " typing_extensions" ,
7
+ " importlib_metadata" ,
6
8
]
7
9
build-backend = " setuptools.build_meta"
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ install_requires =
30
30
packaging>=20.0
31
31
setuptools
32
32
tomli>=1.0.0 # keep in sync
33
+ typing-extensions
33
34
python_requires = >=3.7
34
35
package_dir =
35
36
=src
Original file line number Diff line number Diff line change 4
4
from typing import Any
5
5
from typing import Iterator
6
6
from typing import overload
7
- from typing import Protocol
8
7
from typing import TYPE_CHECKING
9
8
9
+ from typing_extensions import Protocol
10
+
10
11
from . import _types as _t
11
12
from .utils import function_has_arg
12
13
from .utils import trace
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
- import os
4
- import sys
5
3
from typing import Any
6
4
from typing import Callable
7
5
from typing import List
8
6
from typing import NamedTuple
9
- from typing import Protocol
10
7
from typing import TYPE_CHECKING
11
8
from typing import TypeVar
12
9
from typing import Union
13
10
14
11
15
12
if TYPE_CHECKING :
16
13
from setuptools_scm import version
14
+ import os
17
15
18
- if sys .version_info >= (3 , 9 ):
19
- from typing import ParamSpec , TypeAlias
20
- else :
21
- from typing_extensions import ParamSpec , TypeAlias
16
+ from typing_extensions import ParamSpec , TypeAlias , Protocol
22
17
23
18
PathT = Union ["os.PathLike[str]" , str ]
24
19
Original file line number Diff line number Diff line change 29
29
setuptools >= 45
30
30
tomli
31
31
virtualenv>20
32
+ typing_extensions
32
33
commands =
33
34
test: pytest []
34
35
selfcheck: python setup.py --version
You can’t perform that action at this time.
0 commit comments