From 75f99a6451bf95726cd1f1144e1f935bb58795e4 Mon Sep 17 00:00:00 2001 From: Langenfeld Date: Wed, 17 Nov 2021 15:34:25 +0100 Subject: [PATCH] fixed wrong type annotation --- gitea/apiobject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea/apiobject.py b/gitea/apiobject.py index d1c310f..eef6405 100644 --- a/gitea/apiobject.py +++ b/gitea/apiobject.py @@ -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}