mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Correct **kwargs typing for search_* (#1636)
It turns out typing for **kwargs is always Dict[str, Type], so only the type is required. Fixes #1633
This commit is contained in:
@@ -102,40 +102,40 @@ class Github:
|
||||
sort: Union[str, _NotSetType] = ...,
|
||||
order: Union[str, _NotSetType] = ...,
|
||||
highlight: bool = ...,
|
||||
**qualifiers: Dict[str, Any]
|
||||
**qualifiers: Any
|
||||
) -> PaginatedList[ContentFile]: ...
|
||||
def search_commits(
|
||||
self,
|
||||
query: str,
|
||||
sort: Union[str, _NotSetType] = ...,
|
||||
order: Union[str, _NotSetType] = ...,
|
||||
**qualifiers: Dict[str, Any]
|
||||
**qualifiers: Any
|
||||
) -> PaginatedList[Commit]: ...
|
||||
def search_issues(
|
||||
self,
|
||||
query: str,
|
||||
sort: Union[str, _NotSetType] = ...,
|
||||
order: Union[str, _NotSetType] = ...,
|
||||
**qualifiers: Dict[str, Any]
|
||||
**qualifiers: Any
|
||||
) -> PaginatedList[Issue]: ...
|
||||
def search_repositories(
|
||||
self,
|
||||
query: str,
|
||||
sort: Union[str, _NotSetType] = ...,
|
||||
order: Union[str, _NotSetType] = ...,
|
||||
**qualifiers: Dict[str, Any]
|
||||
**qualifiers: Any
|
||||
) -> PaginatedList[Repository]: ...
|
||||
def search_topics(
|
||||
self,
|
||||
query: str,
|
||||
**qualifiers: Dict[str, Any]
|
||||
**qualifiers: Any
|
||||
) -> PaginatedList[Topic]: ...
|
||||
def search_users(
|
||||
self,
|
||||
query: str,
|
||||
sort: Union[str, _NotSetType] = ...,
|
||||
order: Union[str, _NotSetType] = ...,
|
||||
**qualifiers: Dict[str, Any]
|
||||
**qualifiers: Any
|
||||
) -> PaginatedList[NamedUser]: ...
|
||||
|
||||
class GithubIntegration:
|
||||
|
||||
@@ -17,7 +17,7 @@ class HTTPRequestsConnectionClass:
|
||||
strict: bool = ...,
|
||||
timeout: Optional[int] = ...,
|
||||
retry: Any = ...,
|
||||
**kwargs: Dict[str, str]
|
||||
**kwargs: str
|
||||
) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def getresponse(self) -> RequestsResponse: ...
|
||||
@@ -33,7 +33,7 @@ class HTTPSRequestsConnectionClass:
|
||||
strict: bool = ...,
|
||||
timeout: Optional[int] = ...,
|
||||
retry: Any = ...,
|
||||
**kwargs: Dict[str, str]
|
||||
**kwargs: str
|
||||
) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def getresponse(self) -> RequestsResponse: ...
|
||||
|
||||
Reference in New Issue
Block a user