Skip to content

Commit 3f78137

Browse files
authored
[lint] fix warnings (#349)
1 parent dc27f85 commit 3f78137

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: tatsu/ast.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from .util import asjson, is_list
88

99

10-
class AST(dict):
10+
class AST(dict): # noqa: FURB189
1111
_frozen = False
1212

1313
def __init__(self, *args, **kwargs):

Diff for: tatsu/contexts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def isname(impl):
101101
return impl
102102

103103

104-
class closure(list):
104+
class closure(list): # noqa: FURB189
105105
def __hash__(self):
106106
return hash(tuple(self))
107107

Diff for: tatsu/grammars.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
PRAGMA_RE = r'^\s*#include.*$'
2323

2424

25-
class _ref(str):
25+
class _ref(str): # noqa: FURB189
2626
def __repr__(self):
2727
return f'<{self}>'
2828

Diff for: tatsu/infos.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from .util.unicode_characters import C_DERIVE
1313

1414

15-
class UndefinedStr(str):
15+
class UndefinedStr(str): # noqa: FURB189
1616
pass
1717

1818

0 commit comments

Comments
 (0)