From ffc7886ed4cdf0474c1974326eeb6569019af20f Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Fri, 14 Nov 2025 22:44:16 +0100 Subject: fix SQLAlchemy types See https://docs.sqlalchemy.org/en/20/changelog/whatsnew_20.html#whatsnew-20-orm-declarative-typing The Mapped[] annotations help mypy to find the right types for the instance attributes. Some of the mapped_column() definitions are superfluous, but I think it's nice to have them explicit. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index cea085f..891b5e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ dependencies = [ "pyramid_tm (>=2.5, <3.0)", "waitress (>=3, <4)", - "SQLAlchemy[mypy] (>=2.0.15, <3.0.0)", + "SQLAlchemy (>=2.0.15, <3.0.0)", "alembic (>=1.8, <2.0)", "transaction (>=5, <6)", "zope.sqlalchemy (>=4.0, <5.0)", -- cgit v1.2.3