Skip to content

Commit f032c85

Browse files
Alison GimCopilot
andcommitted
fix: apply black formatting to dialect_kql.py
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fecc047 commit f032c85

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

sqlalchemy_kusto/dialect_kql.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,7 @@ def replacer(match):
374374
return modified_expression
375375

376376
@staticmethod
377-
def _expression_references_aliases(
378-
expression: str, raw_aliases: set[str]
379-
) -> bool:
377+
def _expression_references_aliases(expression: str, raw_aliases: set[str]) -> bool:
380378
"""Check if an expression references any aggregate alias.
381379
382380
Checks for both double-quoted ("alias") and KQL-escaped (["alias"])
@@ -386,9 +384,7 @@ def _expression_references_aliases(
386384
for alias in raw_aliases:
387385
escaped_alias = re.escape(alias)
388386
# Match ["alias"] or "alias" anywhere in the expression
389-
if re.search(
390-
rf'\["{escaped_alias}"\]|"{escaped_alias}"', expression
391-
):
387+
if re.search(rf'\["{escaped_alias}"\]|"{escaped_alias}"', expression):
392388
return True
393389
# For simple identifiers, also match unquoted bare references
394390
if re.fullmatch(r"[A-Za-z_]\w*", alias) and re.search(

0 commit comments

Comments
 (0)