diff options
| author | Anthony Sottile <asottile@umich.edu> | 2020-01-16 12:54:52 -0800 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2020-01-16 12:54:52 -0800 |
| commit | f4822d87833b12a96987f6d50911c78944b944b5 (patch) | |
| tree | 702f080b5533e3a9a7c578bd819185cd5a28f798 /src | |
| parent | b56c88fe654af09161a66bf81e00481fa5d2d8c5 (diff) | |
| download | flake8-f4822d87833b12a96987f6d50911c78944b944b5.tar.gz | |
Fix the type= warning to contain the option name
Diffstat (limited to 'src')
| -rw-r--r-- | src/flake8/options/manager.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/flake8/options/manager.py b/src/flake8/options/manager.py index def4c96..13c7969 100644 --- a/src/flake8/options/manager.py +++ b/src/flake8/options/manager.py @@ -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] |
