mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
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:
@@ -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] = ...,
|
||||
|
||||
Reference in New Issue
Block a user