diff --git a/tatsu/ast.py b/tatsu/ast.py index 95db84a1..bfba54c0 100644 --- a/tatsu/ast.py +++ b/tatsu/ast.py @@ -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): diff --git a/tatsu/contexts.py b/tatsu/contexts.py index 50d7df30..12873fdb 100644 --- a/tatsu/contexts.py +++ b/tatsu/contexts.py @@ -101,7 +101,7 @@ def isname(impl): return impl -class closure(list): +class closure(list): # noqa: FURB189 def __hash__(self): return hash(tuple(self)) diff --git a/tatsu/grammars.py b/tatsu/grammars.py index 726225f1..65def8b9 100644 --- a/tatsu/grammars.py +++ b/tatsu/grammars.py @@ -22,7 +22,7 @@ PRAGMA_RE = r'^\s*#include.*$' -class _ref(str): +class _ref(str): # noqa: FURB189 def __repr__(self): return f'<{self}>' diff --git a/tatsu/infos.py b/tatsu/infos.py index 0efb982f..6ec898ad 100644 --- a/tatsu/infos.py +++ b/tatsu/infos.py @@ -12,7 +12,7 @@ from .util.unicode_characters import C_DERIVE -class UndefinedStr(str): +class UndefinedStr(str): # noqa: FURB189 pass