Enable mypy check_untyped_defs (#2607)

This commit is contained in:
Trim21
2023-07-14 14:49:28 +02:00
committed by GitHub
parent 13e178a3ab
commit 8816889a7d
19 changed files with 215 additions and 310 deletions
-4
View File
@@ -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
]