Add typing.Optional on missing annotations#1549
Conversation
|
I have a question why use |
It's just to comply with the current pattern you see around in the code. |
Understood, thanks |
…tte into chore/add-optional-to-none
|
I've added @adriangb Does your approval stands after my latest changes? |
adriangb
left a comment
There was a problem hiding this comment.
Yep I think this is good. I gave this a scroll through, I didn't see anything wrong so if MyPy is happy, I'm happy. LGTM!
| no_implicit_optional = True | ||
| show_error_codes = True | ||
|
|
||
| [mypy-starlette.testclient] | ||
| no_implicit_optional = False |
There was a previous comment by @tomchristie about adding
typing.Optionalwhere is missing in a single PR.I can't find the comment.
Note: I need to add
no-implicit-optionalon mypy configuration.