fixed wrong type annotation

pull/12/head
Langenfeld 2021-11-17 15:34:25 +01:00
rodzic a14fda209f
commit 75f99a6451
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -302,7 +302,7 @@ class Repository(ApiObject):
)
return [Branch.parse_response(self.gitea, result) for result in results]
def add_branch(self, create_from: Branch, newname: str) -> "Commit":
def add_branch(self, create_from: Branch, newname: str) -> "Branch":
"""Add a branch to the repository"""
# Note: will only work with gitea 1.13 or higher!
data = {"new_branch_name": newname, "old_branch_name": create_from.name}