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:
Steve Kowalik
2020-08-06 21:56:09 +10:00
committed by GitHub
parent 15b5ae0c75
commit 165d995da2
2 changed files with 8 additions and 8 deletions
+6 -6
View File
@@ -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:
+2 -2
View File
@@ -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: ...