Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retry and pool_size to typing #2151

Merged
merged 2 commits into from Oct 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions github/MainClass.pyi
Expand Up @@ -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)

Expand All @@ -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: ...
Expand Down
11 changes: 7 additions & 4 deletions github/Requester.pyi
Expand Up @@ -6,7 +6,7 @@ from requests.models import Response

from github.GithubObject import GithubObject

# from urllib3.util.retry import Retry
from urllib3.util import Retry

class HTTPRequestsConnectionClass:
def __init__(
Expand All @@ -15,7 +15,8 @@ class HTTPRequestsConnectionClass:
port: Optional[int] = ...,
strict: bool = ...,
timeout: Optional[int] = ...,
retry: Any = ...,
retry: Optional[Union[int, Retry]] = ...,
pool_size: Optional[int] = ...,
**kwargs: str
) -> None: ...
def close(self) -> None: ...
Expand All @@ -31,7 +32,8 @@ class HTTPSRequestsConnectionClass:
port: Optional[int] = ...,
strict: bool = ...,
timeout: Optional[int] = ...,
retry: Any = ...,
retry: Optional[Union[int, Retry]] = ...,
pool_size: Optional[int] = ...,
**kwargs: str
) -> None: ...
def close(self) -> None: ...
Expand Down Expand Up @@ -120,7 +122,8 @@ class Requester:
user_agent: str,
per_page: int,
verify: bool,
retry: Any,
retry: Optional[Union[int, Retry]],
pool_size: Optional[int],
) -> None: ...
def _initializeDebugFeature(self) -> None: ...
def check_me(self, obj: GithubObject) -> None: ...
Expand Down