Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pyrightconfig.stricter.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"stubs/networkx",
"stubs/oauthlib",
"stubs/openpyxl",
"stubs/opentracing/opentracing/span.pyi",
"stubs/paramiko/paramiko/_winapi.pyi",
"stubs/parsimonious/parsimonious/nodes.pyi",
"stubs/peewee",
Expand Down
4 changes: 2 additions & 2 deletions stubs/opentracing/opentracing/mocktracer/span.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ from .tracer import MockTracer

class MockSpan(Span):
operation_name: str | None
start_time: Any
start_time: float | None
parent_id: int | None
tags: dict[str, Any]
finish_time: float
Expand All @@ -34,5 +34,5 @@ class MockSpan(Span):

class LogData:
key_values: dict[str, Any]
timestamp: float | None
timestamp: float
def __init__(self, key_values: dict[str, Any], timestamp: float | None = None) -> None: ...
2 changes: 1 addition & 1 deletion stubs/opentracing/opentracing/scope_managers/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ class ThreadLocalScopeManager(ScopeManager):
def __init__(self) -> None: ...
def activate(self, span: Span, finish_on_close: bool) -> Scope: ...
@property
def active(self) -> Scope: ...
def active(self) -> Scope | None: ...
2 changes: 1 addition & 1 deletion stubs/opentracing/opentracing/scope_managers/asyncio.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ from ..span import Span
class AsyncioScopeManager(ThreadLocalScopeManager):
def activate(self, span: Span, finish_on_close: bool) -> Scope: ...
@property
def active(self) -> Scope: ...
def active(self) -> Scope | None: ...
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ from ..span import Span
class ContextVarsScopeManager(ScopeManager):
def activate(self, span: Span, finish_on_close: bool) -> Scope: ...
@property
def active(self) -> Scope: ...
def active(self) -> Scope | None: ...

def no_parent_scope() -> None: ...
2 changes: 1 addition & 1 deletion stubs/opentracing/opentracing/scope_managers/gevent.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ from ..span import Span
class GeventScopeManager(ScopeManager):
def activate(self, span: Span, finish_on_close: bool) -> Scope: ...
@property
def active(self) -> Scope: ...
def active(self) -> Scope | None: ...
2 changes: 1 addition & 1 deletion stubs/opentracing/opentracing/scope_managers/tornado.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ from ..span import Span
class TornadoScopeManager(ThreadLocalScopeManager):
def activate(self, span: Span, finish_on_close: bool) -> Scope: ...
@property
def active(self) -> Scope: ...
def active(self) -> Scope | None: ...

class ThreadSafeStackContext:
contexts: Any
Expand Down
2 changes: 1 addition & 1 deletion stubs/opentracing/opentracing/span.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ class Span:
def __exit__(
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
) -> None: ...
def log_event(self, event: Any, payload=None) -> Self: ...
def log_event(self, event: Any, payload: Any = None) -> Self: ...
def log(self, **kwargs: Any) -> Self: ...
Loading