rochacbruno, It is disappointing that #python TypedDict doesn't support setting default values.
from typing import TypedDict class Con(TypedDict): host: str port: int = 9090 data = {"host": "test.com"} connection = Con(**data)
I expected it to give me
"port": 9090
by default but it does not!Looks like building the dict as instance of Con doesn't make any difference than just building a
{}
and that is very confusing.