From 9fb8588b28468444781cfc83760155c75aa310fc Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 28 May 2020 09:36:37 +1000 Subject: [PATCH] Repository.update_file() content also accepts bytes (#1543) The typing information for the update_file() method's content parameter states it will only accept str, whereas it will accept both str and bytes. Fixes #1542 --- github/Repository.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/Repository.pyi b/github/Repository.pyi index 48d4cbb5..75507231 100644 --- a/github/Repository.pyi +++ b/github/Repository.pyi @@ -504,7 +504,7 @@ class Repository(CompletableGithubObject): self, path: str, message: str, - content: str, + content: Union[bytes, str], sha: str, branch: Union[_NotSetType, str] = ..., committer: Union[_NotSetType, InputGitAuthor] = ...,