You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to convert a pydantic model to a schema object
this works fine, even for many complex model defintions.
However, typing.Optional isn't supported.
having support for this would be very useful (even if the schema will ignore the optional aspect, and just treat it as the underlying type)
ibis.dtype(typing.Optional[str]) fails with the error: TypeError: issubclass() arg 1 must be a class
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to convert a pydantic model to a schema object
this works fine, even for many complex model defintions.
However, typing.Optional isn't supported.
having support for this would be very useful (even if the schema will ignore the optional aspect, and just treat it as the underlying type)
ibis.dtype(typing.Optional[str])
fails with the error:TypeError: issubclass() arg 1 must be a class
Beta Was this translation helpful? Give feedback.
All reactions