#Pydantic tip: If you want your Pydantic model to have an optional field without your IDE screaming at you about missing arguments, you MUST declare it typed | None = None
(OK so yeah that's a type and a default argument, gimme a break :)
So you can't just:
class Moof():
dog: str
cow: str
is_mac_lore: bool | None
Because you'll still get missing argument whining. If however you declare it as:
class Moof():
dog: str
cow: str
is_mac_lore: bool | None = None
Your red glowing IDE induced headache about missing arguments will subside and you can get on with your day :)
Happy #python coding!