Skip to content

Commit 2370e50

Browse files
committed
Formatting
1 parent 4230738 commit 2370e50

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/test_ast_utils.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
class Counter:
88
def __init__(self):
99
self.cpt = 0
10-
10+
1111
def incr(self, *args):
1212
self.cpt += 1
1313

14+
1415
class IterCounter:
1516
def __init__(self):
1617
self.cpt = 0
@@ -24,14 +25,17 @@ class MapCounter:
2425
def __init__(self):
2526
self.cpt = 0
2627

27-
def count(map_self, ast):
28+
def count(map_self, ast): # pylint: disable=no-self-argument
2829
map_self.cpt += 1
30+
2931
class C(MappedFunctions):
30-
def f_block(c_self, block):
32+
def f_block(_, block): # pylint: disable=no-self-argument
3133
return map_self.count(block)
34+
3235
_ = map_block_children(C(), ast)
3336
return ast
3437

38+
3539
def test_ast_iterators() -> None:
3640
for yaml_file_name in pathlib.Path(".").glob("**/*.pdl"):
3741
try:

0 commit comments

Comments
 (0)