-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Improvements to --strict-optional[-whitelist] #2126
Comments
One option is to require a delimiter when providing multiple values with a single |
Note that people are already using the existing whitelist syntax so I'd like to tread carefully. |
This fixes the second bullet of #2126 but not the others. It depends on the changes in this branch (in master options.strict_optional does not exist).
@ddfisher Thoughts? Maybe we can retire/deprecate
This would not change the behavior of runs without |
Obsoleted by #3206. |
I'd like to make two changes to
--strict-optional-whitelist
(abbreviated to--sow
below):--sow A --sow B
is equivalent to--SOW A B
. The motivation for this is to let us put this flag in a script that runs mypy while allowing the script to take additional--sow
flags and pass them through.--sow A B C
, requiring--sow A --sow B --sow C
instead. There are some edge cases to the current behavior that are confusing, e.g. you can't have--sow A
immediately followed by the list of files to check.The text was updated successfully, but these errors were encountered: