Skip to content

Commit

Permalink
SNOW-1058245-sqlalchemy-20-support: pre-commit cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mraba committed Mar 13, 2024
1 parent f1823db commit 9c90d81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/snowflake/sqlalchemy/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ class flatten(sqlfunc.GenericFunction):

def __init__(self, *args, **kwargs):
warnings.warn(FLATTEN_WARNING, DeprecationWarning, stacklevel=2)
return super().__init__(*args, **kwargs)
super().__init__(*args, **kwargs)
5 changes: 1 addition & 4 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
)
from sqlalchemy.exc import DBAPIError, NoSuchTableError
from sqlalchemy.pool import NullPool
from sqlalchemy.sql import and_, insert, not_, or_, select
from sqlalchemy.sql import and_, not_, or_, select

import snowflake.connector.errors
import snowflake.sqlalchemy.snowdialect
Expand Down Expand Up @@ -1426,9 +1426,6 @@ def test_autoincrement(engine_testaccount):
Column("name", String(39)),
)

insert_stmt = insert(users)
select_stmt = select(users.c.name).order_by("uid")

try:
metadata.create_all(engine_testaccount)

Expand Down

0 comments on commit 9c90d81

Please sign in to comment.