Closed
Description
The revealed type in the following program is int
though it should be Optional[int]
when using --strict-optional
:
d = {'x': 1}
a = d.get('y')
reveal_type(a)
This also needs a typeshed change, but I think that there was a mypy issue with overloaded functions that is related. It's worth having a separate issue to track this here.