Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lint] fix warnings #349

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tatsu/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .util import asjson, is_list


class AST(dict):
class AST(dict): # noqa: FURB189
_frozen = False

def __init__(self, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion tatsu/contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def isname(impl):
return impl


class closure(list):
class closure(list): # noqa: FURB189
def __hash__(self):
return hash(tuple(self))

Expand Down
2 changes: 1 addition & 1 deletion tatsu/grammars.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
PRAGMA_RE = r'^\s*#include.*$'


class _ref(str):
class _ref(str): # noqa: FURB189
def __repr__(self):
return f'<{self}>'

Expand Down
2 changes: 1 addition & 1 deletion tatsu/infos.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .util.unicode_characters import C_DERIVE


class UndefinedStr(str):
class UndefinedStr(str): # noqa: FURB189
pass


Expand Down
Loading