mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-26 19:47:14 +08:00
Improve __enter__ & constructor methods (#7114)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Self
|
||||
from typing import Any
|
||||
|
||||
log: Any
|
||||
@@ -12,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, header): ...
|
||||
def from_header_str(cls: type[Self], header) -> Self: ...
|
||||
def to_header_str(self): ...
|
||||
@property
|
||||
def root(self): ...
|
||||
|
||||
Reference in New Issue
Block a user