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

Improve mypy flags for regr_test.py and typecheck_typeshed.py #9441

Merged
merged 2 commits into from
Jan 2, 2023

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Jan 2, 2023

  • Remove redundant flags that are now enabled by default.
  • Add --pretty to typecheck_typeshed.py.

mypy_test.py flags are being reworked in #9408.

- Remove redundant flags that are now enabled by default
- Add --pretty to type_check_typeshed.py
@JelleZijlstra
Copy link
Member

No strong feelings here, but there's some value in keeping these flags even if they are enabled by default: it's more explicit, and we are insulated against changes if mypy decides to flip the default again in the future.

@AlexWaygood
Copy link
Member Author

AlexWaygood commented Jan 2, 2023

Fair points. I guess I'm still weakly in favour of this PR — it feels unlikely that these changes to the mypy defaults will be reverted, and the added value from explicitness feels a little slim to me here :)

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

LGTM, I slightly prefer to remove the redundant options, but have no really strong feelings.

@AlexWaygood AlexWaygood merged commit a7f1d3c into main Jan 2, 2023
@AlexWaygood AlexWaygood deleted the AlexWaygood-patch-1 branch January 2, 2023 12:01
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