File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -766,7 +766,7 @@ def _assure_writable(self, method_name: str) -> None:
766766 if self .read_only :
767767 raise IOError ("Cannot execute non-constant method %s.%s" % (self , method_name ))
768768
769- def add_section (self , section : str | cp ._UNNAMED_SECTION ) -> None :
769+ def add_section (self , section : " cp._SectionName" ) -> None :
770770 """Assures added options will stay in order."""
771771 return super ().add_section (section )
772772
Original file line number Diff line number Diff line change 2525)
2626from git .objects .base import IndexObject , Object
2727from git .objects .util import TraversableIterableObj
28- from ...refs .remote import RemoteReference
2928from git .util import (
3029 IterableList ,
3130 RemoteProgress ,
6766if TYPE_CHECKING :
6867 from git .index import IndexFile
6968 from git .objects .commit import Commit
70- from git .refs import Head
69+ from git .refs import Head , RemoteReference
7170 from git .repo import Repo
7271
7372# -----------------------------------------------------------------------------
@@ -356,7 +355,7 @@ def _clone_repo(
356355 module_checkout_path = osp .join (str (repo .working_tree_dir ), path )
357356
358357 if url .startswith ("../" ):
359- remote_name = cast (RemoteReference , repo .active_branch .tracking_branch ()).remote_name
358+ remote_name = cast (" RemoteReference" , repo .active_branch .tracking_branch ()).remote_name
360359 repo_remote_url = repo .remote (remote_name ).url
361360 url = os .path .join (repo_remote_url , url )
362361
You can’t perform that action at this time.
0 commit comments