mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
Fix assertion for subject_type in creating pull request review comment (#2642)
Co-authored-by: Enrico Minack <github@enrico.minack.dev>
This commit is contained in:
co-authored by
Enrico Minack
parent
ff0f31c276
commit
4933459e6b
@@ -448,8 +448,8 @@ class PullRequest(github.GithubObject.CompletableGithubObject):
|
||||
], start_side
|
||||
assert in_reply_to is github.GithubObject.NotSet or isinstance(in_reply_to, int), in_reply_to
|
||||
assert subject_type is github.GithubObject.NotSet or subject_type in [
|
||||
"LINE",
|
||||
"FILE",
|
||||
"line",
|
||||
"file",
|
||||
"side",
|
||||
], subject_type
|
||||
assert isinstance(as_suggestion, bool), as_suggestion
|
||||
|
||||
Reference in New Issue
Block a user