Skip to content

Commit

Permalink
chore(deps-dev): bump ruff from 0.8.4 to 0.8.5 (#130)
Browse files Browse the repository at this point in the history
Related to #129
  • Loading branch information
DouglasBlackwood authored Jan 3, 2025
1 parent c450ee7 commit 90be57c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
38 changes: 19 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions sql_compare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@


if typing.TYPE_CHECKING:
from collections.abc import Generator
import pathlib


Expand Down Expand Up @@ -108,7 +109,7 @@ def is_comment(self) -> bool:
return isinstance(self.token_list, sqlparse.sql.Comment)

@property
def tokens(self) -> typing.Generator[Token | TokenList, None, None]:
def tokens(self) -> Generator[Token | TokenList, None, None]:
"""Yield relevant tokens in a deterministic order."""
for token in self.token_list.tokens:
if token.is_group:
Expand Down Expand Up @@ -166,7 +167,7 @@ def is_unordered(token_list: sqlparse.sql.TokenList, statement_type: str) -> boo
)

@property
def tokens(self) -> typing.Generator[Token | TokenList, None, None]:
def tokens(self) -> Generator[Token | TokenList, None, None]:
"""Yield relevant tokens in a deterministic order."""
filtered_tokens = [t for t in self.flatten_tokens if not t.ignore]

Expand All @@ -185,7 +186,7 @@ def tokens(self) -> typing.Generator[Token | TokenList, None, None]:
yield from sorted_tokens

@property
def flatten_tokens(self) -> typing.Generator[Token, None, None]:
def flatten_tokens(self) -> Generator[Token, None, None]:
"""Yield all tokens in the token tree."""
yield from (Token(t) for t in self.token_list.flatten())

Expand Down

0 comments on commit 90be57c

Please sign in to comment.