1616
1717from . import exc
1818from ._internal .config_reader import ConfigReader
19- from .types import ConfigDict , RawConfigDict
2019from .util import get_config_dir , update_dict
2120
2221log = logging .getLogger (__name__ )
2322
2423if t .TYPE_CHECKING :
2524 from typing_extensions import TypeGuard
2625
26+ from .types import ConfigDict , RawConfigDict
27+
2728
2829def expand_dir (
2930 _dir : pathlib .Path , cwd : pathlib .Path = pathlib .Path .cwd ()
@@ -50,8 +51,8 @@ def expand_dir(
5051
5152
5253def extract_repos (
53- config : RawConfigDict , cwd : pathlib .Path = pathlib .Path .cwd ()
54- ) -> list [ConfigDict ]:
54+ config : " RawConfigDict" , cwd : pathlib .Path = pathlib .Path .cwd ()
55+ ) -> list [" ConfigDict" ]:
5556 """Return expanded configuration.
5657
5758 end-user configuration permit inline configuration shortcuts, expand to
@@ -68,7 +69,7 @@ def extract_repos(
6869 -------
6970 list : List of normalized repository information
7071 """
71- configs : list [ConfigDict ] = []
72+ configs : list [" ConfigDict" ] = []
7273 for directory , repos in config .items ():
7374 assert isinstance (repos , dict )
7475 for repo , repo_data in repos .items ():
@@ -220,7 +221,7 @@ def find_config_files(
220221
221222def load_configs (
222223 files : list [pathlib .Path ], cwd : pathlib .Path = pathlib .Path .cwd ()
223- ) -> t .List [ConfigDict ]:
224+ ) -> t .List [" ConfigDict" ]:
224225 """Return repos from a list of files.
225226
226227 Parameters
@@ -239,7 +240,7 @@ def load_configs(
239240 ----
240241 Validate scheme, check for duplicate destinations, VCS urls
241242 """
242- repos : list [ConfigDict ] = []
243+ repos : list [" ConfigDict" ] = []
243244 for file in files :
244245 if isinstance (file , str ):
245246 file = pathlib .Path (file )
@@ -262,11 +263,11 @@ def load_configs(
262263 return repos
263264
264265
265- ConfigDictTuple = tuple [ConfigDict , ConfigDict ]
266+ ConfigDictTuple = tuple [" ConfigDict" , " ConfigDict" ]
266267
267268
268269def detect_duplicate_repos (
269- config1 : list [ConfigDict ], config2 : list [ConfigDict ]
270+ config1 : list [" ConfigDict" ], config2 : list [" ConfigDict" ]
270271) -> list [ConfigDictTuple ]:
271272 """Return duplicate repos dict if repo_dir same and vcs different.
272273
@@ -329,11 +330,11 @@ def in_dir(
329330
330331
331332def filter_repos (
332- config : t .List [ConfigDict ],
333+ config : t .List [" ConfigDict" ],
333334 dir : t .Union [pathlib .Path , t .Literal ["*" ], str , None ] = None ,
334335 vcs_url : t .Union [str , None ] = None ,
335336 name : t .Union [str , None ] = None ,
336- ) -> list [ConfigDict ]:
337+ ) -> list [" ConfigDict" ]:
337338 """Return a :py:obj:`list` list of repos from (expanded) config file.
338339
339340 dir, vcs_url and name all support fnmatch.
@@ -354,7 +355,7 @@ def filter_repos(
354355 list :
355356 Repos
356357 """
357- repo_list : list [ConfigDict ] = []
358+ repo_list : list [" ConfigDict" ] = []
358359
359360 if dir :
360361 repo_list .extend (
0 commit comments