mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-04 22:31:26 +08:00
Simplify and correct many numeric unions (#7906)
Unblocks PyCQA/flake8-pyi#222
This commit is contained in:
@@ -28,7 +28,7 @@ class MockSpan(Span):
|
||||
@property
|
||||
def context(self) -> SpanContext: ...
|
||||
def set_operation_name(self: Self, operation_name: str) -> Self: ...
|
||||
def set_tag(self: Self, key: str, value: str | bool | int | float) -> Self: ...
|
||||
def set_tag(self: Self, key: str, value: str | bool | float) -> Self: ...
|
||||
def log_kv(self: Self, key_values: dict[str, Any], timestamp: float | None = ...) -> Self: ...
|
||||
def set_baggage_item(self: Self, key: str, value: str) -> Self: ...
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ class Span:
|
||||
def tracer(self) -> Tracer: ...
|
||||
def set_operation_name(self: Self, operation_name: str) -> Self: ...
|
||||
def finish(self, finish_time: float | None = ...) -> None: ...
|
||||
def set_tag(self: Self, key: str, value: str | bool | int | float) -> Self: ...
|
||||
def set_tag(self: Self, key: str, value: str | bool | float) -> Self: ...
|
||||
def log_kv(self: Self, key_values: dict[str, Any], timestamp: float | None = ...) -> Self: ...
|
||||
def set_baggage_item(self: Self, key: str, value: str) -> Self: ...
|
||||
def get_baggage_item(self, key: str) -> str | None: ...
|
||||
|
||||
Reference in New Issue
Block a user