mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 11:07:17 +08:00
Use typing_extensions.Self instead of _typeshed.Self (#9702)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import datetime
|
||||
from _typeshed import Self
|
||||
from collections.abc import Callable, Iterator
|
||||
from json import JSONDecoder
|
||||
from typing import Any
|
||||
from typing_extensions import Self
|
||||
|
||||
from urllib3 import exceptions as urllib3_exceptions, fields, filepost, util
|
||||
|
||||
@@ -106,7 +106,7 @@ class Response:
|
||||
def __bool__(self) -> bool: ...
|
||||
def __nonzero__(self) -> bool: ...
|
||||
def __iter__(self) -> Iterator[bytes]: ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __enter__(self) -> Self: ...
|
||||
def __exit__(self, *args: object) -> None: ...
|
||||
@property
|
||||
def next(self) -> PreparedRequest | None: ...
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from _typeshed import Incomplete, Self, SupportsItems, SupportsRead
|
||||
from _typeshed import Incomplete, SupportsItems, SupportsRead
|
||||
from collections.abc import Callable, Iterable, Mapping, MutableMapping
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias, TypedDict
|
||||
from typing_extensions import Self, TypeAlias, TypedDict
|
||||
|
||||
from urllib3._collections import RecentlyUsedContainer
|
||||
|
||||
@@ -133,7 +133,7 @@ class Session(SessionRedirectMixin):
|
||||
adapters: MutableMapping[Any, Any]
|
||||
redirect_cache: RecentlyUsedContainer[Any, Any]
|
||||
def __init__(self) -> None: ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __enter__(self) -> Self: ...
|
||||
def __exit__(self, *args) -> None: ...
|
||||
def prepare_request(self, request: Request) -> PreparedRequest: ...
|
||||
def request(
|
||||
|
||||
Reference in New Issue
Block a user