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

mypy: stricter settings #140

Merged
merged 6 commits into from
May 10, 2024
Merged

mypy: stricter settings #140

merged 6 commits into from
May 10, 2024

Conversation

tamird
Copy link
Contributor

@tamird tamird commented May 9, 2024

  • Ratchet up mypy settings
  • Fix typo
  • mypy: disallow_untyped_defs
  • mypy: disallow_untyped_calls

@tamird tamird force-pushed the mypy-stricter branch 2 times, most recently from 9084a5a to d5aaabb Compare May 9, 2024 10:27
@tamird
Copy link
Contributor Author

tamird commented May 9, 2024

@JoshData would you mind approving another CI run? I though I had pushed earlier but evidently had not.

@tamird
Copy link
Contributor Author

tamird commented May 9, 2024

@JoshData thanks! Green now.

@@ -1,4 +1,5 @@
from typing import Any, Dict, Optional
from typing import Any, List, Optional, Tuple, TypedDict
from typing_extensions import NotRequired
Copy link
Owner

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.

Copy link
Contributor Author

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).

Copy link
Owner

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, done.

@JoshData
Copy link
Owner

JoshData commented May 9, 2024

Very cool. Thanks very much. I left one comment.

@JoshData JoshData merged commit a9a8a62 into JoshData:main May 10, 2024
5 checks passed
@JoshData
Copy link
Owner

Thanks. I learned a lot from this, which I love.

@tamird tamird deleted the mypy-stricter branch May 10, 2024 12:50
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