We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4230738 commit 2370e50Copy full SHA for 2370e50
tests/test_ast_utils.py
@@ -7,10 +7,11 @@
7
class Counter:
8
def __init__(self):
9
self.cpt = 0
10
-
+
11
def incr(self, *args):
12
self.cpt += 1
13
14
15
class IterCounter:
16
17
@@ -24,14 +25,17 @@ class MapCounter:
24
25
26
27
- def count(map_self, ast):
28
+ def count(map_self, ast): # pylint: disable=no-self-argument
29
map_self.cpt += 1
30
31
class C(MappedFunctions):
- def f_block(c_self, block):
32
+ def f_block(_, block): # pylint: disable=no-self-argument
33
return map_self.count(block)
34
35
_ = map_block_children(C(), ast)
36
return ast
37
38
39
def test_ast_iterators() -> None:
40
for yaml_file_name in pathlib.Path(".").glob("**/*.pdl"):
41
try:
0 commit comments