-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
false-positivemypy gave an error on correct codemypy gave an error on correct codefeaturepriority-2-low
Description
On this code:
from collections import defaultdict
from typing import Any, Dict, Tuple, Union
class Point(object):
def __init__(self, x, y):
# type: (int, int) -> None
self.x = x
self.y = y
x = defaultdict(lambda: Point(0, 0))
mypy complains with:
sandbox.py:12: error: Need type annotation for variable
Metadata
Metadata
Assignees
Labels
false-positivemypy gave an error on correct codemypy gave an error on correct codefeaturepriority-2-low