Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 23, 2024
1 parent 164bbcd commit 43e6c4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/sqlacodegen/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ class Base:
class CodeGenerator(metaclass=ABCMeta):
valid_options: ClassVar[set[str]] = set()

def __init__(
self, metadata: MetaData, dialect: Dialect, options: Sequence[str]
):
def __init__(self, metadata: MetaData, dialect: Dialect, options: Sequence[str]):
self.metadata: MetaData = metadata
self.dialect: Dialect = dialect
self.options: set[str] = set(options)
Expand Down
4 changes: 3 additions & 1 deletion src/sqlacodegen/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ def get_constraint_sort_key(constraint: Constraint) -> str:

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


def get_common_fk_constraints(
Expand Down

0 comments on commit 43e6c4d

Please sign in to comment.