While looking into the lint issues of #401, I realized we never activated the SQLAlchemy mypy plugin. This PR makes up for that.
This surfaces some errors. When columns are defined without nullable=False, the value of the field is always Optional[T]. Since we don't have None values and won't have them for the currently available columns in the future, I've set nullable=False everywhere.
While looking into the lint issues of #401, I realized we never activated the SQLAlchemy mypy plugin. This PR makes up for that.
This surfaces some errors. When columns are defined without
nullable=False
, the value of the field is alwaysOptional[T]
. Since we don't haveNone
values and won't have them for the currently available columns in the future, I've setnullable=False
everywhere.