diff options
| author | Anthony Sottile <asottile@umich.edu> | 2020-04-24 10:43:54 -0700 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2020-04-24 10:43:54 -0700 |
| commit | 3b490bb3c5775fedca7167a98c5bf4aee5e171f7 (patch) | |
| tree | 4e7b0e5e0d4b81f0e5911ae75952a6a27f406008 /src/flake8 | |
| parent | 2cb1c65c99a7892b404d9b86771b598896343053 (diff) | |
| download | flake8-3b490bb3c5775fedca7167a98c5bf4aee5e171f7.tar.gz | |
Fix type='str' optparse options
Diffstat (limited to 'src/flake8')
| -rw-r--r-- | src/flake8/options/manager.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/flake8/options/manager.py b/src/flake8/options/manager.py index 13c7969..d076862 100644 --- a/src/flake8/options/manager.py +++ b/src/flake8/options/manager.py @@ -28,6 +28,8 @@ _optparse_callable_map = { "float": float, "complex": complex, "choice": _ARG.NO, + # optparse allows this but does not document it + "str": str, } # type: Dict[str, Union[Type[Any], _ARG]] |
