Skip to content

Commit f58ee2b

Browse files
committed
Hide unused arguments and add typings
1 parent 4ca4704 commit f58ee2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ydb_sqlalchemy/sqlalchemy/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from sqlalchemy.engine import characteristics, reflection
1414
from sqlalchemy.engine.default import DefaultExecutionContext, StrCompileDialect
1515
from sqlalchemy.exc import CompileError, NoSuchTableError
16-
from sqlalchemy.sql import functions, literal_column
16+
from sqlalchemy.sql import ddl, functions, literal_column
1717
from sqlalchemy.sql.compiler import (
1818
DDLCompiler,
1919
IdentifierPreparer,
@@ -462,7 +462,7 @@ def visit_upsert(self, insert_stmt, visited_bindparam=None, **kw):
462462

463463

464464
class YqlDDLCompiler(DDLCompiler):
465-
def visit_create_index(self, create, include_schema=False, include_table_schema=True, **kw) -> str:
465+
def visit_create_index(self, create: ddl.CreateIndex, **kw) -> str:
466466
index: sa.Index = create.element
467467
ydb_opts = index.dialect_options.get("ydb", {})
468468

@@ -491,7 +491,7 @@ def visit_create_index(self, create, include_schema=False, include_table_schema=
491491

492492
return text
493493

494-
def visit_drop_index(self, drop, include_schema=False, include_table_schema=True, **kw) -> str:
494+
def visit_drop_index(self, drop: ddl.DropIndex, **kw) -> str:
495495
index: sa.Index = drop.element
496496

497497
self._verify_index_table(index)

0 commit comments

Comments
 (0)