1- from _typeshed import StrPath
1+ from _typeshed import Incomplete , StrPath
22from collections .abc import Mapping
3- from typing import Any
43from typing_extensions import TypeAlias
54
65from . import dist
@@ -18,10 +17,10 @@ __all__ = [
1817 "SetupRequirementsError" ,
1918]
2019
21- _ConfigSettings : TypeAlias = dict [str , str | list [str ] | None ] | None
20+ _ConfigSettings : TypeAlias = Mapping [str , str | list [str ] | None ] | None
2221
2322class SetupRequirementsError (BaseException ):
24- specifiers : Any
23+ specifiers : Incomplete
2524 def __init__ (self , specifiers ) -> None : ...
2625
2726class Distribution (dist .Distribution ):
@@ -31,10 +30,10 @@ class Distribution(dist.Distribution):
3130
3231class _BuildMetaBackend :
3332 def run_setup (self , setup_script : str = "setup.py" ) -> None : ...
34- def get_requires_for_build_wheel (self , config_settings : Mapping [ str , Any ] | None = None ) -> list [str ]: ...
35- def get_requires_for_build_sdist (self , config_settings : Mapping [ str , Any ] | None = None ) -> list [str ]: ...
33+ def get_requires_for_build_wheel (self , config_settings : _ConfigSettings | None = None ) -> list [str ]: ...
34+ def get_requires_for_build_sdist (self , config_settings : _ConfigSettings | None = None ) -> list [str ]: ...
3635 def prepare_metadata_for_build_wheel (
37- self , metadata_directory : str , config_settings : Mapping [ str , Any ] | None = None
36+ self , metadata_directory : str , config_settings : _ConfigSettings | None = None
3837 ) -> str : ...
3938 def build_wheel (
4039 self , wheel_directory : StrPath , config_settings : _ConfigSettings | None = None , metadata_directory : StrPath | None = None
@@ -43,9 +42,9 @@ class _BuildMetaBackend:
4342 def build_editable (
4443 self , wheel_directory : StrPath , config_settings : _ConfigSettings | None = None , metadata_directory : str | None = None
4544 ) -> str : ...
46- def get_requires_for_build_editable (self , config_settings : Mapping [ str , Any ] | None = None ) -> list [str ]: ...
45+ def get_requires_for_build_editable (self , config_settings : _ConfigSettings | None = None ) -> list [str ]: ...
4746 def prepare_metadata_for_build_editable (
48- self , metadata_directory : str , config_settings : Mapping [ str , Any ] | None = None
47+ self , metadata_directory : str , config_settings : _ConfigSettings | None = None
4948 ) -> str : ...
5049
5150class _BuildMetaLegacyBackend (_BuildMetaBackend ):
0 commit comments