aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/ast/postprocess.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-08-28 18:00:50 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-09-08 20:15:55 +0200
commit3489442848c84c05ce0fb8a696d3b5ae0e46daaa (patch)
tree5f30565dd585841cae06726b93d3c41548f2e288 /mesonbuild/ast/postprocess.py
parent9c1e72202de8015e16a4ba2ccf8ea50c10f474f7 (diff)
downloadmeson-3489442848c84c05ce0fb8a696d3b5ae0e46daaa.zip
meson-3489442848c84c05ce0fb8a696d3b5ae0e46daaa.tar.gz
meson-3489442848c84c05ce0fb8a696d3b5ae0e46daaa.tar.bz2
typing: completely type ast
Diffstat (limited to 'mesonbuild/ast/postprocess.py')
-rw-r--r--mesonbuild/ast/postprocess.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/ast/postprocess.py b/mesonbuild/ast/postprocess.py
index 35fe1d3..6d808be 100644
--- a/mesonbuild/ast/postprocess.py
+++ b/mesonbuild/ast/postprocess.py
@@ -20,7 +20,7 @@ from .. import mparser
import typing as T
class AstIndentationGenerator(AstVisitor):
- def __init__(self):
+ def __init__(self) -> None:
self.level = 0
def visit_default_func(self, node: mparser.BaseNode) -> None:
@@ -76,7 +76,7 @@ class AstIndentationGenerator(AstVisitor):
self.level -= 1
class AstIDGenerator(AstVisitor):
- def __init__(self):
+ def __init__(self) -> None:
self.counter = {} # type: T.Dict[str, int]
def visit_default_func(self, node: mparser.BaseNode) -> None:
@@ -87,7 +87,7 @@ class AstIDGenerator(AstVisitor):
self.counter[name] += 1
class AstConditionLevel(AstVisitor):
- def __init__(self):
+ def __init__(self) -> None:
self.condition_level = 0
def visit_default_func(self, node: mparser.BaseNode) -> None: