Skip to content

Commit ee0f0a2

Browse files
committed
fix formatting
1 parent 0506548 commit ee0f0a2

File tree

2 files changed

+108
-64
lines changed

2 files changed

+108
-64
lines changed

ddtrace/internal/native/_native.pyi

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,22 +98,24 @@ def store_metadata(data: PyTracerMetadata) -> PyAnonymousFileHandle:
9898
# Result types for dispatch_with_results functionality
9999
class ResultType:
100100
"""Result type constants for EventResult."""
101+
101102
RESULT_OK: int = 0
102103
RESULT_EXCEPTION: int = 1
103104
RESULT_UNDEFINED: int = -1
104105

105106
class EventResult:
106107
"""Individual listener result from dispatch_with_results."""
108+
107109
response_type: int
108110
value: Any
109111
exception: Optional[Exception]
110-
112+
111113
def __init__(self, response_type: int = -1, value: Any = None, exception: Optional[Exception] = None) -> None: ...
112114
def __bool__(self) -> bool: ...
113115

114116
class EventResultDict:
115117
"""Dictionary-like container for event results with attribute access support."""
116-
118+
117119
def __init__(self) -> None: ...
118120
def __getitem__(self, key: str) -> EventResult: ...
119121
def __setitem__(self, key: str, value: EventResult) -> None: ...
@@ -126,26 +128,30 @@ class EventResultDict:
126128
# Event hub submodule - high-performance event dispatcher implemented in Rust
127129
class event_hub:
128130
"""High-performance event hub submodule containing all event dispatcher functions."""
129-
131+
130132
# Event hub classes available in the submodule
131133
class ResultType:
132134
"""Result type constants for EventResult."""
135+
133136
RESULT_OK: int = 0
134137
RESULT_EXCEPTION: int = 1
135138
RESULT_UNDEFINED: int = -1
136139

137140
class EventResult:
138141
"""Individual listener result from dispatch_with_results."""
142+
139143
response_type: int
140144
value: Any
141145
exception: Optional[Exception]
142-
143-
def __init__(self, response_type: int = -1, value: Any = None, exception: Optional[Exception] = None) -> None: ...
146+
147+
def __init__(
148+
self, response_type: int = -1, value: Any = None, exception: Optional[Exception] = None
149+
) -> None: ...
144150
def __bool__(self) -> bool: ...
145151

146152
class EventResultDict:
147153
"""Dictionary-like container for event results with attribute access support."""
148-
154+
149155
def __init__(self) -> None: ...
150156
def __getitem__(self, key: str) -> EventResult: ...
151157
def __setitem__(self, key: str, value: EventResult) -> None: ...
@@ -154,7 +160,6 @@ class event_hub:
154160
def keys(self) -> List[str]: ...
155161
def values(self) -> List[EventResult]: ...
156162
def items(self) -> List[Tuple[str, EventResult]]: ...
157-
158163

159164
# Module-level event hub functions (using global EventHub instance)
160165
@staticmethod

0 commit comments

Comments
 (0)