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

Improve function type annotations #319

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Conversation

cdce8p
Copy link
Contributor

@cdce8p cdce8p commented Oct 13, 2024

Add some strait forward type annotations to functions and methods.

Note

Explicitly leave out the more complicated stuff to make it easier to review.

Unfortunately though, quite a few of the remaining untyped decorators require different type hints for the getter and setter. I could add the annotations, but this is currently unsupported by mypy. python/mypy#3004

@hugovk hugovk added the changelog: Added For new features label Oct 13, 2024
Copy link
Collaborator

@hugovk hugovk left a comment

Choose a reason for hiding this comment

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

Thanks!

@hugovk hugovk merged commit 5c3f495 into prettytable:main Oct 15, 2024
22 checks passed
@cdce8p cdce8p deleted the improve-typing-2 branch October 15, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: Added For new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants