Skip to content

Commit

Permalink
Fix Repository.edit (PyGithub#904)
Browse files Browse the repository at this point in the history
Allows to pass falsy values to the new arguments introduced in PyGithub#844.

Closes PyGithub#903
  • Loading branch information
jacquerie authored and candrikos committed Sep 25, 2020
1 parent 2001536 commit 58cf52a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions github/Repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -1247,9 +1247,9 @@ def edit(self, name=None, description=github.GithubObject.NotSet, homepage=githu
assert has_wiki is github.GithubObject.NotSet or isinstance(has_wiki, bool), has_wiki
assert has_downloads is github.GithubObject.NotSet or isinstance(has_downloads, bool), has_downloads
assert default_branch is github.GithubObject.NotSet or isinstance(default_branch, (str, unicode)), default_branch
assert allow_squash_merge is github.GithubObject.NotSet or (isinstance(allow_squash_merge, bool) and allow_squash_merge is True), allow_squash_merge
assert allow_merge_commit is github.GithubObject.NotSet or (isinstance(allow_merge_commit, bool) and allow_merge_commit is True), allow_merge_commit
assert allow_rebase_merge is github.GithubObject.NotSet or (isinstance(allow_rebase_merge, bool) and allow_rebase_merge is True), allow_rebase_merge
assert allow_squash_merge is github.GithubObject.NotSet or isinstance(allow_squash_merge, bool), allow_squash_merge
assert allow_merge_commit is github.GithubObject.NotSet or isinstance(allow_merge_commit, bool), allow_merge_commit
assert allow_rebase_merge is github.GithubObject.NotSet or isinstance(allow_rebase_merge, bool), allow_rebase_merge
assert archived is github.GithubObject.NotSet or (isinstance(archived, bool) and archived is True), archived
post_parameters = {
"name": name,
Expand Down

0 comments on commit 58cf52a

Please sign in to comment.