Add retry and pool_size to typing (#2151)

This commit is contained in:
Enrico Minack
2022-10-25 11:34:46 +08:00
committed by GitHub
parent db9337a4ee
commit 784a3efd68
2 changed files with 10 additions and 6 deletions
+3 -2
View File
@@ -22,7 +22,7 @@ from github.RateLimit import RateLimit
from github.Repository import Repository
from github.Topic import Topic
# from urllib3.util.retry import Retry
from urllib3.util import Retry
TGithubObject = TypeVar("TGithubObject", bound=GithubObject)
@@ -39,7 +39,8 @@ class Github:
user_agent: str = ...,
per_page: int = ...,
verify: bool = ...,
retry: Any = ...,
retry: Optional[Union[int, Retry]] = ...,
pool_size: Optional[int] = ...,
) -> None: ...
@property
def FIX_REPO_GET_GIT_REF(self) -> bool: ...