mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
Enable mypy check_untyped_defs (#2607)
This commit is contained in:
@@ -1524,7 +1524,6 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
assert isinstance(cve_id, (str, type(None))), cve_id
|
||||
assert isinstance(vulnerabilities, typing.Iterable), vulnerabilities
|
||||
for vulnerability in vulnerabilities:
|
||||
# noinspection PyProtectedMember
|
||||
github.RepositoryAdvisoryVulnerability.RepositoryAdvisoryVulnerability._validate_vulnerability(
|
||||
vulnerability
|
||||
)
|
||||
@@ -1533,9 +1532,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
assert isinstance(credits, (typing.Iterable, type(None))), credits
|
||||
if credits is not None:
|
||||
for credit in credits:
|
||||
# noinspection PyProtectedMember
|
||||
github.RepositoryAdvisoryCredit.RepositoryAdvisoryCredit._validate_credit(credit)
|
||||
# noinspection PyProtectedMember
|
||||
post_parameters = {
|
||||
"summary": summary,
|
||||
"description": description,
|
||||
@@ -1548,7 +1545,6 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
if cve_id is not None:
|
||||
post_parameters["cve_id"] = cve_id
|
||||
if credits is not None:
|
||||
# noinspection PyProtectedMember
|
||||
post_parameters["credits"] = [
|
||||
github.RepositoryAdvisoryCredit.RepositoryAdvisoryCredit._to_github_dict(credit) for credit in credits
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user