diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2020-01-28 20:57:07 +0100 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2020-03-02 10:52:59 +0100 |
commit | d67888bf9b398b9ff9709d396569260f98971e8a (patch) | |
tree | 7cf83e064b984433675a6b373fd08269ddf07480 /mesonbuild/ast/postprocess.py | |
parent | 0302a697b8c232b21a4a8e14db93e79df485a97d (diff) | |
download | meson-d67888bf9b398b9ff9709d396569260f98971e8a.zip meson-d67888bf9b398b9ff9709d396569260f98971e8a.tar.gz meson-d67888bf9b398b9ff9709d396569260f98971e8a.tar.bz2 |
types: Remove redundant __init__() -> None annotation
Diffstat (limited to 'mesonbuild/ast/postprocess.py')
-rw-r--r-- | mesonbuild/ast/postprocess.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/ast/postprocess.py b/mesonbuild/ast/postprocess.py index 6d808be..35fe1d3 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) -> None: + def __init__(self): 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) -> None: + def __init__(self): 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) -> None: + def __init__(self): self.condition_level = 0 def visit_default_func(self, node: mparser.BaseNode) -> None: |