-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrongdocumentationpriority-1-normaltopic-daemondmypydmypy
Description
Consider this example:
class Config:
url = None
def __init__(self) -> None:
self.url = 'xxx'
mypy
says there are no errors, but dmypy
with the same settings finds one:
$ mypy example.py
Success: no issues found in 1 source file
$ dmypy run -- --follow-imports=skip example.py
Daemon started
example.py:3: error: Need type annotation for 'url'
Found 1 error in 1 file (checked 1 source file)
my package versions:
$ python --version
Python 3.6.5 :: Anaconda, Inc.
$ mypy --version
mypy 0.750
blueyed
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongdocumentationpriority-1-normaltopic-daemondmypydmypy