File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
stubs/setuptools/setuptools/_distutils Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change
1
+ import sys
1
2
from collections .abc import Callable
2
- from typing import Any , ClassVar
3
+ from typing import Any , ClassVar , Final
3
4
4
5
from ..cmd import Command
5
6
6
7
HAS_USER_SITE : bool
7
8
SCHEME_KEYS : tuple [str , ...]
8
- INSTALL_SCHEMES : dict [str , dict [Any , Any ]]
9
+ INSTALL_SCHEMES : Final [dict [str , dict [str , str ]]]
10
+
11
+ if sys .version_info < (3 , 10 ):
12
+ WINDOWS_SCHEME : Final [dict [str , str ]]
9
13
10
14
class install (Command ):
11
15
description : str
Original file line number Diff line number Diff line change 1
- DEBUG : bool | None
1
+ from typing import Final
2
+
3
+ DEBUG : Final [str | None ]
Original file line number Diff line number Diff line change 1
- from typing import Literal , overload
1
+ from typing import Final , Literal , overload
2
2
from typing_extensions import deprecated
3
3
4
4
from setuptools ._distutils .ccompiler import CCompiler
5
5
6
- PREFIX : str
7
- EXEC_PREFIX : str
6
+ PREFIX : Final [ str ]
7
+ EXEC_PREFIX : Final [ str ]
8
8
9
9
@overload
10
10
@deprecated ("SO is deprecated, use EXT_SUFFIX. Support will be removed when this module is synchronized with stdlib Python 3.11" )
You can’t perform that action at this time.
0 commit comments