From 659e5af04dbdd24118c12a5be32b1cb4875faf29 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 5 Dec 2023 01:50:27 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- duckdb_engine/__init__.py | 2 +- duckdb_engine/tests/test_basic.py | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/duckdb_engine/__init__.py b/duckdb_engine/__init__.py index 4b114afb9..f597c5cb0 100644 --- a/duckdb_engine/__init__.py +++ b/duckdb_engine/__init__.py @@ -15,6 +15,7 @@ import duckdb import sqlalchemy +from packaging.version import Version from sqlalchemy import pool, text from sqlalchemy import types as sqltypes from sqlalchemy import util @@ -24,7 +25,6 @@ from sqlalchemy.engine.default import DefaultDialect from sqlalchemy.engine.url import URL from sqlalchemy.ext.compiler import compiles -from packaging.version import Version from .config import apply_config, get_core_config from .datatypes import ISCHEMA_NAMES, register_extension_types diff --git a/duckdb_engine/tests/test_basic.py b/duckdb_engine/tests/test_basic.py index d460281c2..08754c31f 100644 --- a/duckdb_engine/tests/test_basic.py +++ b/duckdb_engine/tests/test_basic.py @@ -440,9 +440,5 @@ def test_361(engine: Engine) -> None: part = "year" date_part = func.date_part(part, test.c.dt) - stmt = ( - select(date_part) - .select_from(test) - .group_by(date_part) - ) + stmt = select(date_part).select_from(test).group_by(date_part) conn.execute(stmt).fetchall()