@@ -756,6 +756,7 @@ def stale_refs(self) -> IterableList[Reference]:
756756 @classmethod
757757 def create (cls , repo : "Repo" , name : str , url : str , allow_unsafe_protocols : bool = False , ** kwargs : Any ) -> "Remote" :
758758 """Create a new remote to the given repository
759+
759760 :param repo: Repository instance that is to receive the new remote
760761 :param name: Desired name of the remote
761762 :param url: URL which corresponds to the remote's name
@@ -778,6 +779,7 @@ def add(cls, repo: "Repo", name: str, url: str, **kwargs: Any) -> "Remote":
778779 @classmethod
779780 def remove (cls , repo : "Repo" , name : str ) -> str :
780781 """Remove the remote with the given name
782+
781783 :return: the passed remote name to remove
782784 """
783785 repo .git .remote ("rm" , name )
@@ -790,6 +792,7 @@ def remove(cls, repo: "Repo", name: str) -> str:
790792
791793 def rename (self , new_name : str ) -> "Remote" :
792794 """Rename self to the given new_name
795+
793796 :return: self"""
794797 if self .name == new_name :
795798 return self
@@ -1021,11 +1024,11 @@ def pull(
10211024 """Pull changes from the given branch, being the same as a fetch followed
10221025 by a merge of branch with your local branch.
10231026
1024- :param refspec: see ' fetch' method
1025- :param progress: see ' push' method
1026- :param kill_after_timeout: see ' fetch' method
1027+ :param refspec: see :meth:` fetch` method
1028+ :param progress: see :meth:` push` method
1029+ :param kill_after_timeout: see :meth:` fetch` method
10271030 :param kwargs: Additional arguments to be passed to git-pull
1028- :return: Please see ' fetch' method"""
1031+ :return: Please see :meth:` fetch` method"""
10291032 if refspec is None :
10301033 # No argument refspec, then ensure the repo's config has a fetch refspec.
10311034 self ._assert_refspec ()
0 commit comments