Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Type Hinting for WebSocket Connection #437

Merged
merged 2 commits into from
Jun 11, 2024

Conversation

circansm
Copy link
Contributor

This PR enhances the type hinting of the connect method in websocket_api.py to return SolanaWsClientProtocol instead of the general WebSocketClientProtocol. This change helps improve IDE support and developer experience by enabling better autocompletion and type checking for specific methods like logs_subscribe that are available on SolanaWsClientProtocol.

This addresses the issue #434 where there was a lack of autocompletion support in IDEs due to incorrect type hinting.

circansm added 2 commits June 10, 2024 13:03
"Enhance type hinting for 'connect' to improve IDE support"
@michaelhly michaelhly requested a review from kevinheavey June 10, 2024 17:38
@michaelhly
Copy link
Owner

@kevinheavey tests seem to pass. Looks safe to merge?

@michaelhly michaelhly requested a review from michael-sola June 10, 2024 17:49
@michaelhly michaelhly requested review from michael-sola and removed request for michael-sola June 10, 2024 17:49
@michaelhly michaelhly merged commit 7f2f3cb into michaelhly:master Jun 11, 2024
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants