From 8b60c8d94a5d47e91df30844350c3db297e1f0e8 Mon Sep 17 00:00:00 2001 From: Yusur Princeps Date: Wed, 11 Mar 2026 13:27:37 +0100 Subject: [PATCH] 0.12.4 fix wrong imports in .sqlalchemy.quart --- CHANGELOG.md | 4 ++++ src/suou/__init__.py | 2 +- src/suou/sqlalchemy/quart.py | 16 +++++++++++++--- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b518edd..bee8a5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.12.4 + ++ Fix wrong imports in `sqlalchemy.quart` submodule + ## 0.12.3 + Replace `resource_filename()` (from deprecated pkg_resources) with API from `importlib.resources` diff --git a/src/suou/__init__.py b/src/suou/__init__.py index eb8c0e3..e18ef35 100644 --- a/src/suou/__init__.py +++ b/src/suou/__init__.py @@ -38,7 +38,7 @@ from .http import WantsContentType from .color import OKLabColor, chalk, WebColor, RGBColor, LinearRGBColor, XYZColor, OKLCHColor from .mat import Matrix -__version__ = "0.12.3" +__version__ = "0.12.4" __all__ = ( 'ConfigOptions', 'ConfigParserConfigSource', 'ConfigSource', 'ConfigValue', diff --git a/src/suou/sqlalchemy/quart.py b/src/suou/sqlalchemy/quart.py index dd03f06..185b6a5 100644 --- a/src/suou/sqlalchemy/quart.py +++ b/src/suou/sqlalchemy/quart.py @@ -1,11 +1,21 @@ """ SQLAlchemy-Quart bindings + +--- + +Copyright (c) 2025 Sakuragasaki46. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +See LICENSE for the specific language governing permissions and +limitations under the License. + +This software is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. """ - -from select import select from flask_sqlalchemy.pagination import Pagination -from sqlalchemy import Select, func +from sqlalchemy import Select, func, select from sqlalchemy.ext.asyncio import AsyncSession from sqlalchemy.orm import lazyload