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

Upgrade to mypy 1.9.0 #223

Merged
merged 1 commit into from
Mar 31, 2024
Merged

Upgrade to mypy 1.9.0 #223

merged 1 commit into from
Mar 31, 2024

Conversation

trevorb1
Copy link
Member

Description

In this PR I have upgraded pre-commit to use mypy 1.9.0!

As part of this process, mypy now prohibits implicit Optional arguments (as described by PEP 484 here). I have updated the code to add Optional type hints where required. Shoutout to this repo for having good docs on this issue! (Although I just did the updates manually, rather than use their package, since there were only a few places where this was an issue)

Issue Ticket Number

Closes #222

Documentation

na

@trevorb1 trevorb1 merged commit 8e103ed into master Mar 31, 2024
14 checks passed
@trevorb1 trevorb1 deleted the issue-222 branch September 21, 2024 17:51
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.

[Bug]: Issue with mypy in pre-commit
1 participant