mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-05 12:36:54 +00:00
Fix type='str' optparse options
This commit is contained in:
parent
2cb1c65c99
commit
3b490bb3c5
2 changed files with 4 additions and 0 deletions
|
|
@ -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]]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue