Skip to content

Commit

Permalink
[lint] fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed Nov 15, 2024
1 parent dc27f85 commit 7697a53
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

0 comments on commit 7697a53

Please sign in to comment.