Summary
Originally reported by @mflova in #2127 (comment). We should be able to use the type context of the parameter annotation to avoid emitting a diagnostic on either of these:
from typing import TypedDict
class Foo(TypedDict):
x: int
def x(a: Foo = {"x": 42}): ...
def y(a: Foo = dict(x=42)): ...
Version
No response