Skip to content

Loosen ParserMethod typing#188

Merged
sloria merged 4 commits intosloria:masterfrom
hukkin:patch-2
Nov 7, 2020
Merged

Loosen ParserMethod typing#188
sloria merged 4 commits intosloria:masterfrom
hukkin:patch-2

Conversation

@hukkin
Copy link
Copy Markdown

@hukkin hukkin commented Nov 6, 2020

Loosen ParserMethod typing to help with #186 (comment)

Otherwise users would have to always do an assert:

ENV_VALUE = env('ENV_VALUE')
assert ENV_VALUE is not None

to fix mypy errors.

Also made mypy run against the examples/ folder to catch typing issues like this early. It is unclear to me why mypy . does not discover the examples/ dir...

@sloria
Copy link
Copy Markdown
Owner

sloria commented Nov 7, 2020

Thanks! I figured out a way to run mypy in pre-commit while still using dependencies' type annotations: #190 , so I merged that into this.

Will release this fix soon

@sloria sloria merged commit ea3d879 into sloria:master Nov 7, 2020
@hukkin hukkin deleted the patch-2 branch November 7, 2020 08:04
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.

3 participants