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/interpreterbase.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/interpreterbase.py')
-rw-r--r-- | mesonbuild/interpreterbase.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/interpreterbase.py b/mesonbuild/interpreterbase.py index e3c2c64..8071136 100644 --- a/mesonbuild/interpreterbase.py +++ b/mesonbuild/interpreterbase.py @@ -185,7 +185,7 @@ def disablerIfNotFound(f): class permittedKwargs: - def __init__(self, permitted: T.Set[str]) -> None: + def __init__(self, permitted: T.Set[str]): self.permitted = permitted # type: T.Set[str] def __call__(self, f): @@ -208,7 +208,7 @@ class FeatureCheckBase: # Format: {subproject: {feature_version: set(feature_names)}} feature_registry = {} # type: T.ClassVar[T.Dict[str, T.Dict[str, T.Set[str]]]] - def __init__(self, feature_name: str, version: str) -> None: + def __init__(self, feature_name: str, version: str): self.feature_name = feature_name # type: str self.feature_version = version # type: str @@ -293,7 +293,7 @@ class FeatureDeprecated(FeatureCheckBase): class FeatureCheckKwargsBase: - def __init__(self, feature_name: str, feature_version: str, kwargs: T.List[str]) -> None: + def __init__(self, feature_name: str, feature_version: str, kwargs: T.List[str]): self.feature_name = feature_name self.feature_version = feature_version self.kwargs = kwargs @@ -375,7 +375,7 @@ def is_disabled(args, kwargs) -> bool: class InterpreterBase: elementary_types = (int, float, str, bool, list) - def __init__(self, source_root: str, subdir: str, subproject: str) -> None: + def __init__(self, source_root: str, subdir: str, subproject: str): self.source_root = source_root self.funcs = {} # type: T.Dict[str, T.Callable[[mparser.BaseNode, T.List[TYPE_nvar], T.Dict[str, TYPE_nvar]], TYPE_var]] self.builtin = {} # type: T.Dict[str, InterpreterObject] |