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

Enable no_implicit_optional in mypy config #5457

Merged

Conversation

nabla-c0d3
Copy link
Contributor

Status

Ready for review

Description of Changes

To help with #4399 , this PR adds no_implicit_optional = True to the mypy config and then fixes the few type errors triggered by this change.
This will eventually be the default setting in mypy ( python/mypy#9091 ) and seemed easy enough to add to Securedrop now, before a lot of non-compatible type annotations get added.

Copy link
Contributor

@zenmonkeykstop zenmonkeykstop left a comment

Choose a reason for hiding this comment

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

Looks good based on visual review, no other affected code found, and make typelint is passing,

Approved and thanks, @nabla-c0d3 !

@zenmonkeykstop zenmonkeykstop merged commit ef48794 into freedomofpress:develop Aug 20, 2020
@nabla-c0d3 nabla-c0d3 deleted the mypy-no-implicit-optional branch October 24, 2020 17:45
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