-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Warning instructs using --extra-checks
, but no equivalent config option exists
#16189
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
Comments
--extra-checks
, but no equivalent config exists--extra-checks
, but no equivalent config option exists
|
I've only done a quick skim, but it seems like it is indeed implemented; the config parsing logic pulls from the Line 219 in 06a566b
So this is probably just a documentation thing. I haven't actually tried to test this by crafting a snippet that would trip something under |
We're supposed to use `--extra-checks` instead but it doesn't have a documented config setting. Just remove it. Cf python/mypy#16189
We're supposed to use `--extra-checks` instead but it doesn't have a documented config setting. Just remove it. Cf python/mypy#16189
Adding |
Fixes #16189 Few things here: * Soften a bit the language on the flag * Delete docs for old deprecated `strict_concatenate` option that is now part of `extra_checks` * Add a bit more motivation to the flag description * Update docs for `--strict` flag to mention `extra_checks` instead of `strict_concatenate` Note that the docs on config file option requested in the issue were added a while ago.
Cool! Thanks for improving the documentation! 🧡 |
Fixes python#16189 Few things here: * Soften a bit the language on the flag * Delete docs for old deprecated `strict_concatenate` option that is now part of `extra_checks` * Add a bit more motivation to the flag description * Update docs for `--strict` flag to mention `extra_checks` instead of `strict_concatenate` Note that the docs on config file option requested in the issue were added a while ago.
Uh oh!
There was an error while loading. Please reload this page.
Documentation
mypy
prints this warning:I'm not passing
--strict-concatenate
on the command line, but I instead have asetup.cfg
withstrict_concatenate = True
. So naturally, I would expect that thestrict_concatenate
config has been replaced with anextra_checks
config, but the docs page The mypy configuration file does not mention such an option but also does not mention thatstrict_concatenate
has been deprecated.So, either the docs of config options needs to be updated, or the warning is wrong and should only be triggered when
--strict-concatenate
is passed on the command line.The text was updated successfully, but these errors were encountered: