From d67888bf9b398b9ff9709d396569260f98971e8a Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Tue, 28 Jan 2020 20:57:07 +0100 Subject: types: Remove redundant __init__() -> None annotation --- mesonbuild/ast/introspection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesonbuild/ast/introspection.py') diff --git a/mesonbuild/ast/introspection.py b/mesonbuild/ast/introspection.py index d51b099..c9a51bf 100644 --- a/mesonbuild/ast/introspection.py +++ b/mesonbuild/ast/introspection.py @@ -30,7 +30,7 @@ build_target_functions = ['executable', 'jar', 'library', 'shared_library', 'sha class IntrospectionHelper: # mimic an argparse namespace - def __init__(self, cross_file: str) -> None: + def __init__(self, cross_file: str): self.cross_file = cross_file # type: str self.native_file = None # type: str self.cmd_line_options = {} # type: T.Dict[str, str] @@ -46,7 +46,7 @@ class IntrospectionInterpreter(AstInterpreter): cross_file: T.Optional[str] = None, subproject: str = '', subproject_dir: str = 'subprojects', - env: T.Optional[environment.Environment] = None) -> None: + env: T.Optional[environment.Environment] = None): visitors = visitors if visitors is not None else [] super().__init__(source_root, subdir, subproject, visitors=visitors) -- cgit v1.1