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
@@ -1,5 +1,5 @@
from _typeshed import Self
from typing import Any
from typing_extensions import Self
log: Any
ROOT: str
@@ -13,7 +13,7 @@ class TraceHeader:
self, root: str | None = ..., parent: str | None = ..., sampled: bool | None = ..., data: dict[str, Any] | None = ...
) -> None: ...
@classmethod
def from_header_str(cls: type[Self], header) -> Self: ...
def from_header_str(cls, header) -> Self: ...
def to_header_str(self): ...
@property
def root(self): ...