Simplify and correct many numeric unions (#7906)

Unblocks PyCQA/flake8-pyi#222
This commit is contained in:
Alex Waygood
2022-05-21 15:25:00 +01:00
committed by GitHub
parent 7576805aee
commit 76a4bd796b
17 changed files with 30 additions and 26 deletions

View File

@@ -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: ...

View File

@@ -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: ...