mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-01 12:56:51 +08:00
Use PEP 570 syntax in third party stubs (#11554)
This commit is contained in:
@@ -54,7 +54,7 @@ class SocketIO:
|
||||
def on_error_default(self, exception_handler: _ExceptionHandler[_R_co]) -> _ExceptionHandler[_R_co]: ...
|
||||
def on_event(self, message: str, handler: _Handler[[Incomplete], object], namespace: str | None = None) -> None: ...
|
||||
@overload
|
||||
def event(self, __event_handler: _Handler[_P, _R_co]) -> _Handler[_P, _R_co]: ...
|
||||
def event(self, event_handler: _Handler[_P, _R_co], /) -> _Handler[_P, _R_co]: ...
|
||||
@overload
|
||||
def event(self, namespace: str | None = None, *args, **kwargs) -> _HandlerDecorator: ...
|
||||
def on_namespace(self, namespace_handler: Namespace) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user