Open peteris-zealid opened 2 years ago
if you are using the mypy plugin, this is expected for the 1.4 series, see https://docs.sqlalchemy.org/en/14/orm/extensions/mypy.html#introspection-of-columns-based-on-typeengine
in 2.0 we will be using a completely different approach for this.
You are correct. Sorry for not reading the manual. You should probably close the issue now.
no worries at all , i will likely be switching this behavior for 2.0's approach (which won't use the plugin).
Describe the bug Table columns have optional[T] type even when they are defined with
nullable=False
Expected behavior Expected for type to be just "builtins.str" (not optional)
To Reproduce
Versions.
Have a nice day! Thank you, you too. You do not see this a lot on the internet. Really appreciate it.