mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-27 20:12:21 +08:00
Use typing_extensions.Self instead of _typeshed.Self (#9702)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from _collections_abc import Generator, dict_keys
|
||||
from _typeshed import Incomplete, ReadableBuffer, Self
|
||||
from _typeshed import Incomplete, ReadableBuffer
|
||||
from types import TracebackType
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
from typing_extensions import Literal, Self, TypeAlias
|
||||
|
||||
from pyasn1.type.base import Asn1Item
|
||||
|
||||
@@ -115,7 +115,7 @@ class Connection:
|
||||
def stream(self, value) -> None: ...
|
||||
@property
|
||||
def usage(self): ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __enter__(self) -> Self: ...
|
||||
def __exit__(
|
||||
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
||||
) -> Literal[False] | None: ...
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
import socket
|
||||
from _typeshed import Incomplete, Self
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any
|
||||
from typing_extensions import Self
|
||||
|
||||
class LDAPException(Exception): ...
|
||||
|
||||
class LDAPOperationResult(LDAPException):
|
||||
def __new__(
|
||||
cls: type[Self],
|
||||
cls,
|
||||
result: Incomplete | None = ...,
|
||||
description: Incomplete | None = ...,
|
||||
dn: Incomplete | None = ...,
|
||||
|
||||
Reference in New Issue
Block a user