Closed
Description
from mypy_extensions import TypedDict
A = TypedDict(
'A', {
'foo': int,
'bar': int,
}
)
B = TypedDict(
'B', {
'foo': int,
}
)
a = A({'foo': 1, 'bar': 2})
b = B({'foo': 2})
a.update({'foo': 2})
a.update(b)
Expect this to pass type checking but got this error:
test.py:19: error: Argument 1 to "update" of "TypedDict" has incompatible type "B"; expected "TypedDict({'foo'?: int, 'bar'?: int})"