(self, bidi_event: str, event_class: type)
| 46 | """Wrapper to provide event_class attribute for WebSocketConnection callbacks.""" |
| 47 | |
| 48 | def __init__(self, bidi_event: str, event_class: type): |
| 49 | self.event_class = bidi_event # WebSocket expects the BiDi event name as event_class |
| 50 | self._python_class = event_class # Keep reference to Python dataclass for deserialization |
| 51 | |
| 52 | def from_json(self, params: dict) -> Any: |
| 53 | """Deserialize event params into the wrapped Python dataclass. |
nothing calls this directly
no outgoing calls
no test coverage detected