Summary
This snippet does not work
@dataclass
class DC:
x: DC | None
v: Callable[[DC], DC] = DC
The reason is that __init__ for DC is not a FunctionLiteral.
Should we allow other types for these constructor functions too? (other than FunctionLiteral and Callable
astral-sh/ruff#19130 this may also help with allowing any type and converting it to callable