Closed
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