Skip to content

Commit 21efebd

Browse files
committed
Clarify return types from Repository.{create,lookup}_branch()
1 parent 4a53b2c commit 21efebd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/repository.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ Repository_git_object_lookup_prefix(Repository *self, PyObject *key)
293293

294294

295295
PyDoc_STRVAR(Repository_lookup_branch__doc__,
296-
"lookup_branch(branch_name, [branch_type]) -> Object\n"
296+
"lookup_branch(branch_name, [branch_type]) -> Branch\n"
297297
"\n"
298298
"Returns the Git reference for the given branch name (local or remote).\n"
299299
"If branch_type is GIT_BRANCH_REMOTE, you must include the remote name\n"
@@ -895,7 +895,7 @@ Repository_create_tag(Repository *self, PyObject *args)
895895

896896

897897
PyDoc_STRVAR(Repository_create_branch__doc__,
898-
"create_branch(name, commit, force=False) -> bytes\n"
898+
"create_branch(name, commit, force=False) -> Branch\n"
899899
"\n"
900900
"Create a new branch \"name\" which points to a commit.\n"
901901
"\n"

0 commit comments

Comments
 (0)