Skip to content

Commit 8de0a1f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent bc68197 commit 8de0a1f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/sqlacodegen/generators.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ class Base:
9494
class CodeGenerator(metaclass=ABCMeta):
9595
valid_options: ClassVar[set[str]] = set()
9696

97-
def __init__(
98-
self, metadata: MetaData, dialect: Dialect, options: Sequence[str]
99-
):
97+
def __init__(self, metadata: MetaData, dialect: Dialect, options: Sequence[str]):
10098
self.metadata: MetaData = metadata
10199
self.dialect: Dialect = dialect
102100
self.options: set[str] = set(options)

src/sqlacodegen/utils.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ def get_constraint_sort_key(constraint: Constraint) -> str:
3535

3636
def get_compiled_expression(statement: ClauseElement, dialect: Dialect) -> str:
3737
"""Return the statement in a form where any placeholders have been filled in."""
38-
return str(statement.compile(dialect=dialect, compile_kwargs={"literal_binds": True}))
38+
return str(
39+
statement.compile(dialect=dialect, compile_kwargs={"literal_binds": True})
40+
)
3941

4042

4143
def get_common_fk_constraints(

0 commit comments

Comments
 (0)