-
Notifications
You must be signed in to change notification settings - Fork 111
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
mypy: stricter settings #140
Conversation
tamird
commented
May 9, 2024
- Ratchet up mypy settings
- Fix typo
- mypy: disallow_untyped_defs
- mypy: disallow_untyped_calls
9084a5a
to
d5aaabb
Compare
@JoshData would you mind approving another CI run? I though I had pushed earlier but evidently had not. |
@JoshData thanks! Green now. |
email_validator/deliverability.py
Outdated
@@ -1,4 +1,5 @@ | |||
from typing import Any, Dict, Optional | |||
from typing import Any, List, Optional, Tuple, TypedDict | |||
from typing_extensions import NotRequired |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typing_extensions is available for tests because it's in the test_requirements.txt file but it's not in the main requirements list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done (added to the main requirements list).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use total=False
on the TypedDict definition so that NotRequired isn't necessary, and then the new dependency doesn't need to be added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, done.
Very cool. Thanks very much. I left one comment. |
Thanks. I learned a lot from this, which I love. |