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
This commit is contained in:
Steve Kowalik
2020-05-28 09:36:37 +10:00
committed by GitHub
parent b40b75f843
commit 9fb8588b28
+1 -1
View File
@@ -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] = ...,