ruslan-korneev / glitch

GitLab Interface in Telegram Chat
0 stars 0 forks source link

Follow PEP-484 with sqlalchemy #13

Closed ruslan-korneev closed 1 year ago

ruslan-korneev commented 1 year ago

ORM Declarative Models

SQLAlchemy 1.4 introduced the first SQLAlchemy-native ORM typing support using a combination of sqlalchemy2-stubs and the Mypy Plugin. In SQLAlchemy 2.0, the Mypy plugin remains available, and has been updated to work with SQLAlchemy 2.0’s typing system. However, it should now be considered deprecated, as applications now have a straightforward path to adopting the new typing support that does not use plugins or stubs.