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

Partial typing annotation support + add mypy #82

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

mbrulatout
Copy link
Contributor

@mbrulatout mbrulatout commented Aug 29, 2024

Added some trivial typing, coupled with some mypy conf, required quite a few changes.
This is a partial support for typing. More to follow, the ultimate goal being the addition of a py.typed file.

To fix a conflict with the bool type annotation, CB.bool() was renamed to CB.boolean().
Used the 3.11 annotation, requiring importing from future

Added mypy conf in pyproject.toml + enabled in pre-submit
disallow_untyped_defs is still disabled.

@mbrulatout mbrulatout changed the title Typing Partial typing annotation support + add mypy Sep 2, 2024
# error whenever a function with type annotations calls a function defined without annotations
#disallow_untyped_calls = true
# stop treating arguments with a None default value as having an implicit Optional type
Copy link

Choose a reason for hiding this comment

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

OPT: remove these

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