The problem seems to be because i use Pydantic and have classes defined like this:
class ServiceRow(BaseModel):
"""An individual record."""
service_id: int = Field(..., description="The ID for the service.", alias="id")
name: str = Field(..., description="Displayable Name for the service.")
So, the class level "name" property is not really a string, Pydantic uses the type hint to know what type the instantiated property "name" should be and it uses the Field assignment to give all sorts of metadata to that property for documentation and validation purposes.
How do i deal with this and tell Cython that at the class level this is a FieldInfo and not a string, but in the instance, its a string?