Personally, I’d mistyped the type annotation
class Foo(BaseModel):
bar = Optional[NonNegativeInt]
Rather than;
class Foo(BaseModel):
bar: Optional[NonNegativeInt]
Silly one ik, but double check that 🙂
Personally, I’d mistyped the type annotation
class Foo(BaseModel):
bar = Optional[NonNegativeInt]
Rather than;
class Foo(BaseModel):
bar: Optional[NonNegativeInt]
Silly one ik, but double check that 🙂