This is a preliminary step towards tagged union narrowing for `TypedDict`: https://github.com/astral-sh/ty/issues/1479