fenya123 / forum123

Flask application written for educational purposes.
http://193.124.115.171/
1 stars 1 forks source link

68: Add types for model columns #69

Closed EugeneTurkin closed 1 year ago

EugeneTurkin commented 1 year ago

Mypy and mypy-sqlalchemy plugin cannot infer type annotations from sqlalchemy model column definitions. See sqlalchemy docs.

So in the scope of this task we need to add explicict type annotations for all column definitions in our models. Steps to do:

  1. provide correct type annotations for columns
  2. run mypy and fix errors if needed