Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions stubs/httplib2/httplib2/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import email.message
import http.client
import re
from _ssl import _PasswordType
from _typeshed import ConvertibleToFloat, ConvertibleToInt, FloatInt, Incomplete, MaybeNone, StrOrBytesPath
from _typeshed import ConvertibleToFloat, ConvertibleToInt, Incomplete, MaybeNone, StrOrBytesPath
from collections.abc import Generator
from ssl import _SSLMethod
from typing import Any, ClassVar, Final, Literal, TypeVar, overload
Expand Down Expand Up @@ -34,7 +34,7 @@ __all__ = [
"UnimplementedHmacDigestAuthOptionError",
]

def has_timeout(timeout: FloatInt | None) -> bool: ...
def has_timeout(timeout: float | int | None) -> bool: ...

debuglevel: Final[int]
RETRIES: Final[int]
Expand Down Expand Up @@ -158,7 +158,7 @@ class HTTPSConnectionWithTimeout(http.client.HTTPSConnection):
port: int | None = None,
key_file: StrOrBytesPath | None = None,
cert_file: StrOrBytesPath | None = None,
timeout: FloatInt | None = None,
timeout: float | int | None = None,
proxy_info=None,
ca_certs: StrOrBytesPath | None = None,
disable_ssl_certificate_validation: bool = False,
Expand Down Expand Up @@ -189,13 +189,13 @@ class Http:
follow_all_redirects: bool
ignore_etag: bool
force_exception_to_status_code: bool
timeout: FloatInt | None
timeout: float | int | None
forward_authorization_headers: bool
limit_kwargs: dict[str, FloatInt]
limit_kwargs: dict[str, float | int]
def __init__(
self,
cache: str | FileCache | None = None,
timeout: FloatInt | None = None,
timeout: float | int | None = None,
proxy_info=...,
ca_certs=None,
disable_ssl_certificate_validation: bool = False,
Expand Down
Loading