Merge branch 'warning_contains_option' into 'master'

Fix the type= warning to contain the option name

See merge request pycqa/flake8!405
This commit is contained in:
Anthony Sottile 2020-01-16 20:58:19 +00:00
commit 14293cc973

View file

@ -205,7 +205,8 @@ class Option(object):
LOG.warning(
"option %s: please update from optparse string `type=` to "
"argparse callable `type=` -- this will be an error in the "
"future"
"future",
long_option_name,
)
type = _optparse_callable_map[type]