mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Remove Python 3.7 branches (#11238)
This commit is contained in:
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user