Skip to content

Commit

Permalink
Fix type hint of OnMessageCallback (Firehose client) (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX authored Nov 6, 2023
1 parent b19763c commit dacea8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atproto/firehose/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
_BASE_WEBSOCKET_URI = 'wss://bsky.social/xrpc'
_MAX_MESSAGE_SIZE_BYTES = 1024 * 1024 * 5 # 5MB

OnMessageCallback = t.Callable[['MessageFrame'], t.Generator[t.Any, None, t.Any]]
OnMessageCallback = t.Callable[['MessageFrame'], None]
AsyncOnMessageCallback = t.Callable[['MessageFrame'], t.Coroutine[t.Any, t.Any, None]]

OnCallbackErrorCallback = t.Callable[[BaseException], None]
Expand Down

0 comments on commit dacea8f

Please sign in to comment.