Skip to content

Remove show_none_errors and strict_optional_whitelist #13507

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

Merged
merged 5 commits into from
Aug 25, 2022

Conversation

hauntsaninja
Copy link
Collaborator

These are somewhat buggy and modern per-module options should be
preferred. I can't find any use of strict_optional_whitelist.
There is some use of show_none_errors, but it's all set to True;
I think people are just worried and cargo culting and want mypy to
really, actually give them all the errors.

Fixes #6514, fixes #2396

These are somewhat buggy and modern per-module options should be
preferred. I can't find any use of strict_optional_whitelist.
There is some use of show_none_errors, but it's all set to True;
I think people are just worried and cargo culting and want mypy to
really, actually give them all the errors.

Fixes python#6514, fixes python#2396
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

hauntsaninja added a commit to hauntsaninja/dragonchain that referenced this pull request Aug 25, 2022
`show_none_errors` is deprecated, see python/mypy#13507
hauntsaninja added a commit to hauntsaninja/pandas that referenced this pull request Aug 25, 2022
`show_none_errors` is deprecated, see python/mypy#13507
hauntsaninja added a commit to hauntsaninja/stone that referenced this pull request Aug 25, 2022
`show_none_errors` is deprecated, see python/mypy#13507
hauntsaninja added a commit to hauntsaninja/PathPicker that referenced this pull request Aug 25, 2022
`show_none_errors` is deprecated, see python/mypy#13507
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

I am strongly +1 on this, --strict-optional is the only right way!

However, mypy primer shows some errors. We can pro-actively create PRs to these repos.

@hauntsaninja
Copy link
Collaborator Author

I already made PRs, see the links^

@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

dragonchain (https://github.com/dragonchain/dragonchain)
+ mypy.ini: [mypy]: Unrecognized option: show_none_errors = True

pandas (https://github.com/pandas-dev/pandas)
+ pyproject.toml: [mypy]: Unrecognized option: show_none_errors = True

stone (https://github.com/dropbox/stone)
+ mypy.ini: [mypy]: Unrecognized option: show_none_errors = True

Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

I didn't even remember that we had these! These only added confusion.

@hauntsaninja hauntsaninja merged commit 80c09d5 into python:master Aug 25, 2022
@hauntsaninja hauntsaninja deleted the confclean branch August 25, 2022 18:02
twoertwein pushed a commit to pandas-dev/pandas that referenced this pull request Sep 3, 2022
Remove use of deprecated mypy option

`show_none_errors` is deprecated, see python/mypy#13507
noatamir pushed a commit to noatamir/pandas that referenced this pull request Nov 9, 2022
Remove use of deprecated mypy option

`show_none_errors` is deprecated, see python/mypy#13507
Jasha10 pushed a commit to Jasha10/PathPicker that referenced this pull request Nov 2, 2023
`show_none_errors` is deprecated, see python/mypy#13507
KapJI pushed a commit to facebook/PathPicker that referenced this pull request Sep 5, 2024
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.

show_none_errors causes invalid behavior for descriptors show_none_errors Needs Documentation
3 participants