Skip to content

Add type hints for better code clarity and linting - #86

Open
meowmeowahr wants to merge 3 commits into
ValentinBELYN:mainfrom
meowmeowahr:types
Open

meowmeowahr wants to merge 3 commits into
ValentinBELYN:mainfrom
meowmeowahr:types

Conversation

@meowmeowahr

Copy link
Copy Markdown

These changes add proper type hints for all of the functions and sockets, for better code clarity and improved linting.

This would fix some issues, like the following, even thought the code runs as intended.
Screenshot

@meowmeowahr
meowmeowahr marked this pull request as draft November 10, 2024 02:52
@meowmeowahr
meowmeowahr marked this pull request as ready for review November 10, 2024 02:57

@kalvdans kalvdans left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Return values are still not annotated, but no problem to leave them for later.

(I have no merge rights to this repo, just a random user of the library)

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.

2 participants