Open
Description
See: #12143 (comment)
Original report:
With:
from typing import TypedDict, final
@final
class A(TypedDict):
"""Empty"""
a: A = {}
reveal_type(a.get("foo", None))
I expect to get None
, but instead get object | Any
.
Maybe the object
should be replaced with None
here? https://github.com/python/typeshed/blob/master/stdlib/typing.pyi#L717-L728
I'm not too sure how that works.