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,9 @@
from _typeshed import Incomplete, Self
from _typeshed import Incomplete
from typing import Any
from typing_extensions import Self
class Settings:
def __new__(cls: type[Self], *args, **kw) -> Self: ...
def __new__(cls, *args, **kw) -> Self: ...
def __init__(self, settings: Incomplete | None = ...) -> None: ...
@classmethod
def get_key(cls, settings: Incomplete | None = ...): ...