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

Use explicit default kwarg for better mypy #44

Merged
merged 1 commit into from
Jan 15, 2024
Merged

Conversation

lord-haffi
Copy link
Collaborator

@lord-haffi lord-haffi commented Jan 15, 2024

Apparently, mypy has big difficulties if the default value is somewhere in the Annotated arguments. Therefore, we will omit this feature.
Additionally, defining the default-value explicitly as kwarg-argument makes it easier for mypy to type check it correctly.

@lord-haffi lord-haffi self-assigned this Jan 15, 2024
Copy link
Contributor

@hf-kklein hf-kklein left a comment

Choose a reason for hiding this comment

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

lgtm

@lord-haffi lord-haffi merged commit 72cc4de into main Jan 15, 2024
13 checks passed
@lord-haffi lord-haffi deleted the default_kwarg branch January 15, 2024 10:27
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