Open ftasbasi opened 1 year ago
@ftasbasi , you are spot on, Any
type is not currently supported because it is not explicit enough for serialization. I will still mark this one as a potential fix to notify users away from Any
usage instead of the current more cryptic issubclass error
Your environment pydbantic Version: 0.0.38 Python Version: 3.9
What happened? I was trying to create a sample sqlite database with a simple table schema as following
What did you expect to happen? zzz.db to be created with XTable inside
Steps to reproduce Run the code above
What is the error?
when i use my own type like
Union[str, int]
instead ofAny
, it works. It seems like Any is not supported here. Am I missing something?