[mypy]
python_version = 3.9
-allow_redefinition = True
# belonging to --strict
warn_unused_configs = true
+disallow_any_generics = true
+disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_untyped_decorators = true
# pylint: disable=unnecessary-lambda-assignment
import argparse
+import builtins
import collections
import configparser
import contextlib
name: Union[str, tuple[str, str]]
dest: Optional[str] = None
metavar: Optional[str] = None
- type: Optional[Callable] = None
+ type: Optional[Callable[[str], Any]] = None
nargs: Optional[str] = None
- action: Optional[Union[str, Callable]] = None
+ action: Optional[Union[str, Callable[[str], Any], builtins.type[argparse.Action]]] = None
default: Any = None
version: Optional[str] = None
choices: Optional[tuple[str, ...]] = None