@@ -41,23 +41,25 @@ class Config:
4141 repo_dict_map : list ["Repo" ]
4242 repos : list ["Repo" ] = dataclasses .field (init = False , default_factory = list )
4343
44- def __post_init__ (self ):
44+ def __post_init__ (self ) -> None :
4545 for repo in self .repo_dict_map :
4646 if isinstance (repo , dict ):
47- self .repos .append (create_project (** repo )) # type:ignore
47+ self .repos .append (create_project (** repo ))
4848
49- def filter_repos (self , ** kwargs ) -> list ["Repo" ]:
49+ def filter_repos (self , ** kwargs : object ) -> list ["Repo" ]:
5050 return QueryList (self .repos ).filter (** kwargs )
5151
5252 @classmethod
53- def from_yaml_file (cls , file_path : pathlib .Path , cwd = pathlib .Path .cwd ()):
53+ def from_yaml_file (
54+ cls , file_path : pathlib .Path , cwd : pathlib .Path = pathlib .Path .cwd ()
55+ ) -> "Config" :
5456 # load yaml
5557 raw_config = yaml .load (open (file_path ).read (), Loader = yaml .Loader )
5658 repos : list [ConfigDict ] = []
5759 for directory , repo_map in raw_config .items ():
5860 assert isinstance (repo_map , dict )
5961 for repo , repo_data in repo_map .items ():
60- conf : dict = {}
62+ conf : dict [ str , t . Any ] = {}
6163
6264 if isinstance (repo_data , str ):
6365 conf ["url" ] = repo_data
0 commit comments