1- from collections .abc import Hashable , Mapping
1+ from collections .abc import Mapping
22from typing import Literal , TypeVar
33
44class config :
55 def __init__ (
66 self ,
7- clone : config | None = ... ,
8- mycpv : str | None = ... ,
9- config_profile_path : str | None = ... ,
10- config_incrementals : dict [str , str ] | None = ... ,
11- config_root : str | None = ... ,
12- target_root : str | None = ... ,
13- sysroot : str | None = ... ,
14- eprefix : str | None = ... ,
7+ clone : config | None = None ,
8+ mycpv : str | None = None ,
9+ config_profile_path : str | None = None ,
10+ config_incrementals : dict [str , str ] | None = None ,
11+ config_root : str | None = None ,
12+ target_root : str | None = None ,
13+ sysroot : str | None = None ,
14+ eprefix : str | None = None ,
1515 local_config : bool = True ,
16- env : dict [str , str ] | None = ... ,
17- _unmatched_removal : bool = ... ,
18- repositories : list [str ] | None = ... ,
16+ env : dict [str , str ] | None = None ,
17+ _unmatched_removal : bool = False ,
18+ repositories : list [str ] | None = None ,
1919 ) -> None : ...
2020 def __getitem__ (self , key : str ) -> str : ...
2121 def __setitem__ (self , key : str , value : str ) -> None : ...
@@ -27,7 +27,7 @@ _K = TypeVar("_K")
2727_V = TypeVar ("_V" )
2828
2929def best_from_dict (
30- key : Hashable ,
30+ key : _K ,
3131 top_dict : Mapping [_K , _V ],
3232 key_order ,
3333 EmptyOnError : Literal [0 , 1 ] = 1 ,
0 commit comments