Consider:
from typing import Literal
def f(default: dict[Literal["value"], str]):
pass
# this works fine
f({"value": "hello"})
class C:
def __init__(self, default: dict[Literal["value"], str]):
pass
# this throws an error
C({"value": "hello"})
https://play.ty.dev/c4307737-6697-4b77-9192-1e1e6e14e70a