variable=[]
Error:
error: Need type annotation for 'variable' (hint: "variable: List[<type>] = ...")
In config file: mypy.ini
disallow_any_expr=False
Is there any way to override this error by a flag in config file?
variable=[]
Error:
error: Need type annotation for 'variable' (hint: "variable: List[<type>] = ...")
In config file: mypy.ini
disallow_any_expr=False
Is there any way to override this error by a flag in config file?
You could try this:
mypy --show-error-code your_module.py, which will output the error code inside square bracketsmypy.ini, add disable_error_code = code