Remove Python 3.7 branches (#11238)

This commit is contained in:
Sebastian Rittau
2024-01-05 11:39:39 +01:00
committed by GitHub
parent 4e62577002
commit 23604858a6
122 changed files with 1952 additions and 3800 deletions

View File

@@ -1,6 +1,5 @@
import gzip
import http.client
import sys
import time
from _typeshed import ReadableBuffer, SizedBuffer, SupportsRead, SupportsWrite
from collections.abc import Callable, Iterable, Mapping
@@ -228,13 +227,9 @@ class Transport:
_headers: list[tuple[str, str]]
_extra_headers: list[tuple[str, str]]
if sys.version_info >= (3, 8):
def __init__(
self, use_datetime: bool = False, use_builtin_types: bool = False, *, headers: Iterable[tuple[str, str]] = ()
) -> None: ...
else:
def __init__(self, use_datetime: bool = False, use_builtin_types: bool = False) -> None: ...
def __init__(
self, use_datetime: bool = False, use_builtin_types: bool = False, *, headers: Iterable[tuple[str, str]] = ()
) -> None: ...
def request(
self, host: _HostType, handler: str, request_body: SizedBuffer, verbose: bool = False
) -> tuple[_Marshallable, ...]: ...
@@ -253,20 +248,14 @@ class Transport:
def parse_response(self, response: http.client.HTTPResponse) -> tuple[_Marshallable, ...]: ...
class SafeTransport(Transport):
if sys.version_info >= (3, 8):
def __init__(
self,
use_datetime: bool = False,
use_builtin_types: bool = False,
*,
headers: Iterable[tuple[str, str]] = (),
context: Any | None = None,
) -> None: ...
else:
def __init__(
self, use_datetime: bool = False, use_builtin_types: bool = False, *, context: Any | None = None
) -> None: ...
def __init__(
self,
use_datetime: bool = False,
use_builtin_types: bool = False,
*,
headers: Iterable[tuple[str, str]] = (),
context: Any | None = None,
) -> None: ...
def make_connection(self, host: _HostType) -> http.client.HTTPSConnection: ...
class ServerProxy:
@@ -277,34 +266,19 @@ class ServerProxy:
__verbose: bool
__allow_none: bool
if sys.version_info >= (3, 8):
def __init__(
self,
uri: str,
transport: Transport | None = None,
encoding: str | None = None,
verbose: bool = False,
allow_none: bool = False,
use_datetime: bool = False,
use_builtin_types: bool = False,
*,
headers: Iterable[tuple[str, str]] = (),
context: Any | None = None,
) -> None: ...
else:
def __init__(
self,
uri: str,
transport: Transport | None = None,
encoding: str | None = None,
verbose: bool = False,
allow_none: bool = False,
use_datetime: bool = False,
use_builtin_types: bool = False,
*,
context: Any | None = None,
) -> None: ...
def __init__(
self,
uri: str,
transport: Transport | None = None,
encoding: str | None = None,
verbose: bool = False,
allow_none: bool = False,
use_datetime: bool = False,
use_builtin_types: bool = False,
*,
headers: Iterable[tuple[str, str]] = (),
context: Any | None = None,
) -> None: ...
def __getattr__(self, name: str) -> _Method: ...
@overload
def __call__(self, attr: Literal["close"]) -> Callable[[], None]: ...