File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from typer import Exit
22
33from copia .cli .config import (
4- Profile ,
4+ BaseProfile ,
55 get_profile ,
66 ConfigScope ,
77 InvalidConfigError ,
2020 ProfileError
2121)
2222
23- def load_profile (profile_name : str , global_flag : bool , local_flag : bool ) -> Profile :
23+ def load_profile (profile_name : str , global_flag : bool , local_flag : bool ) -> BaseProfile :
2424
2525 if global_flag and local_flag :
2626 error ("Cannot use (--global | -g) and (--local | -l) flags at the same time" )
@@ -81,6 +81,6 @@ def get_any_profile(profile_name: str):
8181 info ("Falling back to global config..." )
8282 return _load_profile (profile_name , 'global' )
8383
84- def _load_profile (profile_name : str , scope : ConfigScope ) -> Profile :
84+ def _load_profile (profile_name : str , scope : ConfigScope ) -> BaseProfile :
8585 info (f"Fetching profiles.{ profile_name !r} from { scope !r} config..." )
8686 return get_profile (profile_name , scope )
You can’t perform that action at this time.
0 commit comments