diff --git a/github/Repository.pyi b/github/Repository.pyi index db1d05570f..05c9dd68e2 100644 --- a/github/Repository.pyi +++ b/github/Repository.pyi @@ -336,9 +336,11 @@ class Repository(CompletableGithubObject): def get_collaborator_permission( self, collaborator: Union[str, NamedUser] ) -> str: ... - def get_codescan_alerts(self) -> PaginatedList[CodeScanAlert]: ... + def get_codescan_alerts( + self, ref: Union[str, _NotSetType] = ... + ) -> PaginatedList[CodeScanAlert]: ... def get_code_scanning_analyses( - self, ref: Union[str, _NotSetType] + self, ref: Union[str, _NotSetType] = ... ) -> PaginatedList[CodeScanningAnalysis]: ... def get_collaborators( self, affiliation: Union[str, _NotSetType] = ... diff --git a/github/SecurityAndAnalysis.pyi b/github/SecurityAndAnalysis.pyi index b5981f1a1b..4061093006 100644 --- a/github/SecurityAndAnalysis.pyi +++ b/github/SecurityAndAnalysis.pyi @@ -1,7 +1,9 @@ from typing import Any, Dict -from github import AdvancedSecurity, SecretScanning, SecretScanningPushProtection +from github.AdvancedSecurity import AdvancedSecurity from github.GithubObject import NonCompletableGithubObject +from github.SecretScanning import SecretScanning +from github.SecretScanningPushProtection import SecretScanningPushProtection class SecurityAndAnalysis(NonCompletableGithubObject): def __repr__(self) -> str: ...