@@ -698,7 +698,7 @@ def _default_status(
698698 SCMError (f"Git failed to fetch ref from '{ url } '" ),
699699 ):
700700 with RemoteCallbacks (progress = progress ) as cb :
701- remote_refs : dict [str , " Oid" ] = (
701+ remote_refs : dict [str , Oid ] = (
702702 {
703703 head ["name" ]: head ["oid" ]
704704 for head in remote .ls_remotes (callbacks = cb )
@@ -712,7 +712,7 @@ def _default_status(
712712 message = "fetch" ,
713713 )
714714
715- result : dict [str , " SyncStatus" ] = {}
715+ result : dict [str , SyncStatus ] = {}
716716 for refspec in refspecs :
717717 lh , rh = refspec .split (":" )
718718 if lh .endswith ("*" ):
@@ -951,7 +951,7 @@ def status(
951951 def iter_remote_refs (self , url : str , base : Optional [str ] = None , ** kwargs ):
952952 raise NotImplementedError
953953
954- def merge ( # noqa: C901, PLR0912
954+ def merge ( # noqa: C901
955955 self ,
956956 rev : str ,
957957 commit : bool = True ,
@@ -1089,7 +1089,7 @@ def check_attr(
10891089 from pygit2 import GitError
10901090 from pygit2 .enums import AttrCheck
10911091
1092- commit : Optional [" Commit" ] = None
1092+ commit : Optional [Commit ] = None
10931093 flags = AttrCheck .FILE_THEN_INDEX
10941094 if source :
10951095 try :
0 commit comments