Closed as not planned
Description
Bug Report
class Foo:
bar = None
when running with dmypy
:
$ dmypy run -- foo.py
Restarting: configuration changed
Daemon stopped
Daemon started
foo.py: note: In class "Foo":
foo.py:2: error: Need type annotation for "bar" [var-annotated]
bar = None
^
Found 1 error in 1 file (checked 1 source file)
when running with mypy
:
$ mypy foo.py
Success: no issues found in 1 source file
Your Environment
- Mypy version used: 0.910
- Mypy command-line flags: none
- Mypy configuration options from
mypy.ini
(and other config files):[mypy] exclude = venv mypy_path = stubs warn_redundant_casts = True show_error_context = True pretty = True follow_imports = skip allow_redefinition = True show_error_codes = True
- Python version used: 3.9.6
- Operating system and version: windows 10 1909