diff --git a/github/AuthenticatedUser.pyi b/github/AuthenticatedUser.pyi index 3a8e7da7..6e8c2c93 100644 --- a/github/AuthenticatedUser.pyi +++ b/github/AuthenticatedUser.pyi @@ -25,7 +25,7 @@ class AuthenticatedUser(CompletableGithubObject): def _initAttributes(self) -> None: ... def _useAttributes(self, attributes: Dict[str, Any]) -> None: ... def accept_invitation(self, invitation: Union[int, Invitation]) -> None: ... - def add_to_emails(self, *emails) -> None: ... + def add_to_emails(self, *emails: List[str]) -> None: ... def add_to_following(self, following: NamedUser) -> None: ... def add_to_starred(self, starred: Repository) -> None: ... def add_to_subscriptions(self, subscription: Repository) -> None: ... diff --git a/github/GithubObject.pyi b/github/GithubObject.pyi index b4ece220..38f2c7e1 100644 --- a/github/GithubObject.pyi +++ b/github/GithubObject.pyi @@ -115,7 +115,7 @@ class _BadAttribute: self, value: Any, expectedType: Any, exception: Optional[ValueError] = ... ) -> None: ... @property - def value(self): ... + def value(self) -> Any: ... class _NotSetType: def __repr__(self) -> str: ... diff --git a/github/MainClass.pyi b/github/MainClass.pyi index c5406a2f..5811deca 100644 --- a/github/MainClass.pyi +++ b/github/MainClass.pyi @@ -102,36 +102,40 @@ class Github: sort: Union[str, _NotSetType] = ..., order: Union[str, _NotSetType] = ..., highlight: bool = ..., - **qualifiers + **qualifiers: Dict[str, Any] ) -> PaginatedList[ContentFile]: ... def search_commits( self, query: str, sort: Union[str, _NotSetType] = ..., order: Union[str, _NotSetType] = ..., - **qualifiers + **qualifiers: Dict[str, Any] ) -> PaginatedList[Commit]: ... def search_issues( self, query: str, sort: Union[str, _NotSetType] = ..., order: Union[str, _NotSetType] = ..., - **qualifiers + **qualifiers: Dict[str, Any] ) -> PaginatedList[Issue]: ... def search_repositories( self, query: str, sort: Union[str, _NotSetType] = ..., order: Union[str, _NotSetType] = ..., - **qualifiers + **qualifiers: Dict[str, Any] ) -> PaginatedList[Repository]: ... - def search_topics(self, query: str, **qualifiers) -> PaginatedList[Topic]: ... + def search_topics( + self, + query: str, + **qualifiers: Dict[str, Any] + ) -> PaginatedList[Topic]: ... def search_users( self, query: str, sort: Union[str, _NotSetType] = ..., order: Union[str, _NotSetType] = ..., - **qualifiers + **qualifiers: Dict[str, Any] ) -> PaginatedList[NamedUser]: ... class GithubIntegration: diff --git a/github/Migration.pyi b/github/Migration.pyi index b450d3aa..0536db7b 100644 --- a/github/Migration.pyi +++ b/github/Migration.pyi @@ -6,8 +6,7 @@ from github.NamedUser import NamedUser from github.Repository import Repository class Migration(CompletableGithubObject): - def __repr__(self): - str: ... + def __repr__(self) -> str: ... def _initAttributes(self) -> None: ... def _useAttributes(self, attributes: Dict[str, Any]) -> None: ... @property diff --git a/github/Milestone.pyi b/github/Milestone.pyi index 1826ec93..b0f41c8a 100644 --- a/github/Milestone.pyi +++ b/github/Milestone.pyi @@ -15,8 +15,7 @@ class Milestone(CompletableGithubObject): @property def closed_issues(self) -> int: ... @property - def created_at(self): - datetime: ... + def created_at(self) -> datetime: ... @property def creator(self) -> NamedUser: ... def delete(self) -> None: ... diff --git a/github/Requester.pyi b/github/Requester.pyi index 065be274..d0bcc150 100644 --- a/github/Requester.pyi +++ b/github/Requester.pyi @@ -17,7 +17,7 @@ class HTTPRequestsConnectionClass: strict: bool = ..., timeout: Optional[int] = ..., retry: Any = ..., - **kwargs + **kwargs: Dict[str, str] ) -> None: ... def close(self) -> None: ... def getresponse(self) -> RequestsResponse: ... @@ -33,7 +33,7 @@ class HTTPSRequestsConnectionClass: strict: bool = ..., timeout: Optional[int] = ..., retry: Any = ..., - **kwargs + **kwargs: Dict[str, str] ) -> None: ... def close(self) -> None: ... def getresponse(self) -> RequestsResponse: ... @@ -83,7 +83,7 @@ class Requester: parameters: Dict[str, str] = ..., headers: Dict[str, str] = ..., input: Optional[str] = ..., - encode: Callable = ..., + encode: Callable[[str], str] = ..., ) -> Tuple[int, Dict[str, Any], str]: ... def __requestRaw( self,