@@ -98,22 +98,24 @@ def store_metadata(data: PyTracerMetadata) -> PyAnonymousFileHandle:
98
98
# Result types for dispatch_with_results functionality
99
99
class ResultType :
100
100
"""Result type constants for EventResult."""
101
+
101
102
RESULT_OK : int = 0
102
103
RESULT_EXCEPTION : int = 1
103
104
RESULT_UNDEFINED : int = - 1
104
105
105
106
class EventResult :
106
107
"""Individual listener result from dispatch_with_results."""
108
+
107
109
response_type : int
108
110
value : Any
109
111
exception : Optional [Exception ]
110
-
112
+
111
113
def __init__ (self , response_type : int = - 1 , value : Any = None , exception : Optional [Exception ] = None ) -> None : ...
112
114
def __bool__ (self ) -> bool : ...
113
115
114
116
class EventResultDict :
115
117
"""Dictionary-like container for event results with attribute access support."""
116
-
118
+
117
119
def __init__ (self ) -> None : ...
118
120
def __getitem__ (self , key : str ) -> EventResult : ...
119
121
def __setitem__ (self , key : str , value : EventResult ) -> None : ...
@@ -126,26 +128,30 @@ class EventResultDict:
126
128
# Event hub submodule - high-performance event dispatcher implemented in Rust
127
129
class event_hub :
128
130
"""High-performance event hub submodule containing all event dispatcher functions."""
129
-
131
+
130
132
# Event hub classes available in the submodule
131
133
class ResultType :
132
134
"""Result type constants for EventResult."""
135
+
133
136
RESULT_OK : int = 0
134
137
RESULT_EXCEPTION : int = 1
135
138
RESULT_UNDEFINED : int = - 1
136
139
137
140
class EventResult :
138
141
"""Individual listener result from dispatch_with_results."""
142
+
139
143
response_type : int
140
144
value : Any
141
145
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 : ...
144
150
def __bool__ (self ) -> bool : ...
145
151
146
152
class EventResultDict :
147
153
"""Dictionary-like container for event results with attribute access support."""
148
-
154
+
149
155
def __init__ (self ) -> None : ...
150
156
def __getitem__ (self , key : str ) -> EventResult : ...
151
157
def __setitem__ (self , key : str , value : EventResult ) -> None : ...
@@ -154,7 +160,6 @@ class event_hub:
154
160
def keys (self ) -> List [str ]: ...
155
161
def values (self ) -> List [EventResult ]: ...
156
162
def items (self ) -> List [Tuple [str , EventResult ]]: ...
157
-
158
163
159
164
# Module-level event hub functions (using global EventHub instance)
160
165
@staticmethod
0 commit comments