Skip to content

Commit

Permalink
[lint] fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed Dec 8, 2023
1 parent cf7fdfa commit bae9710
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion tatsu/ngcodegen/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ def param_repr(p):
if not isinstance(rule.exp, grammars.Choice):
self._gen_defines_declaration(rule)


def walk_BasedRule(self, rule: grammars.BasedRule):
# FIXME: the following override is to not alter the previous codegen
rule.exp = rule.rhs
Expand Down
2 changes: 1 addition & 1 deletion test/grammar/directive_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest

import tatsu
from tatsu.codegen import codegen
from tatsu.exceptions import FailedParse
from tatsu.ngcodegen import codegen
from tatsu.util import trim

EXEC = 'exec'
Expand Down
2 changes: 1 addition & 1 deletion test/grammar/join_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import unittest
from ast import parse

from tatsu.codegen import codegen
from tatsu.exceptions import FailedParse
from tatsu.ngcodegen import codegen
from tatsu.tool import compile
from tatsu.util import trim

Expand Down
2 changes: 1 addition & 1 deletion test/grammar/keyword_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import unittest
from ast import parse

from tatsu.codegen import codegen
from tatsu.exceptions import FailedParse
from tatsu.ngcodegen import codegen
from tatsu.tool import compile


Expand Down
2 changes: 1 addition & 1 deletion test/grammar/parameter_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import contextlib
import unittest

from tatsu.codegen import codegen
from tatsu.ngcodegen import codegen
from tatsu.parser import GrammarGenerator
from tatsu.tool import compile
from tatsu.util import trim
Expand Down
2 changes: 1 addition & 1 deletion test/grammar/pattern_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest

from tatsu.codegen import codegen
from tatsu.exceptions import FailedParse
from tatsu.ngcodegen import codegen
from tatsu.tool import compile
from tatsu.util import trim

Expand Down
2 changes: 1 addition & 1 deletion test/grammar/syntax_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import pytest

from tatsu import tool
from tatsu.codegen import codegen
from tatsu.exceptions import FailedParse, FailedToken
from tatsu.ngcodegen import codegen
from tatsu.parser import EBNFBuffer
from tatsu.tool import compile
from tatsu.util import trim
Expand Down
2 changes: 1 addition & 1 deletion test/zzz_bootstrap/bootstrap_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from pathlib import Path

from tatsu import util
from tatsu.codegen import codegen
from tatsu.ngcodegen import codegen
from tatsu.parser import EBNFParser, GrammarGenerator
from tatsu.parser_semantics import EBNFGrammarSemantics
from tatsu.util import asjson
Expand Down

0 comments on commit bae9710

Please sign in to comment.