Use typing_extensions.Self instead of _typeshed.Self (#9702)

This commit is contained in:
Alex Waygood
2023-02-15 11:32:43 +01:00
committed by GitHub
parent 8cd6d81f15
commit 7180d0223b
140 changed files with 597 additions and 610 deletions

View File

@@ -1,8 +1,7 @@
import sys
from _typeshed import Self
from collections.abc import Callable, Generator, Iterable, Iterator, Sequence
from typing import Any, NoReturn, overload
from typing_extensions import Literal
from typing_extensions import Literal, Self
import numpy
from _cffi_backend import _CDataBase
@@ -80,7 +79,7 @@ class Client:
servername: str | None = ...,
session_id: str | None = ...,
) -> None: ...
def __enter__(self: Self) -> Self: ...
def __enter__(self) -> Self: ...
def __exit__(self, *args: object) -> None: ...
@property
def name(self) -> str: ...