From cf9fd56bc905a2022ad48c93d25b5a73b57c8802 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 11 Apr 2023 16:04:17 -0400 Subject: fix various spelling issues Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- mesonbuild/interpreterbase/decorators.py | 4 ++-- mesonbuild/interpreterbase/interpreterbase.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'mesonbuild/interpreterbase') diff --git a/mesonbuild/interpreterbase/decorators.py b/mesonbuild/interpreterbase/decorators.py index 9defb99..3ffa67a 100644 --- a/mesonbuild/interpreterbase/decorators.py +++ b/mesonbuild/interpreterbase/decorators.py @@ -470,7 +470,7 @@ def typed_kwargs(name: str, *types: KwargInfo, allow_unknown: bool = False) -> T information. For non-required values it sets the value to a default, which means the value will always be provided. - If type tyhpe is a :class:ContainerTypeInfo, then the default value will be + If type is a :class:ContainerTypeInfo, then the default value will be passed as an argument to the container initializer, making a shallow copy :param name: the name of the function, including the object it's attached to @@ -583,7 +583,7 @@ def typed_kwargs(name: str, *types: KwargInfo, allow_unknown: bool = False) -> T else: # set the value to the default, this ensuring all kwargs are present # This both simplifies the typing checking and the usage - assert check_value_type(types_tuple, info.default), f'In funcion {name} default value of {info.name} is not a valid type, got {type(info.default)} expected {types_description(types_tuple)}' + assert check_value_type(types_tuple, info.default), f'In function {name} default value of {info.name} is not a valid type, got {type(info.default)} expected {types_description(types_tuple)}' # Create a shallow copy of the container. This allows mutable # types to be used safely as default values kwargs[info.name] = copy.copy(info.default) diff --git a/mesonbuild/interpreterbase/interpreterbase.py b/mesonbuild/interpreterbase/interpreterbase.py index b1d0779..5f854d0 100644 --- a/mesonbuild/interpreterbase/interpreterbase.py +++ b/mesonbuild/interpreterbase/interpreterbase.py @@ -525,14 +525,14 @@ class InterpreterBase: return None def method_call(self, node: mparser.MethodNode) -> T.Optional[InterpreterObject]: - invokable = node.source_object + invocable = node.source_object obj: T.Optional[InterpreterObject] - if isinstance(invokable, mparser.IdNode): - object_display_name = f'variable "{invokable.value}"' - obj = self.get_variable(invokable.value) + if isinstance(invocable, mparser.IdNode): + object_display_name = f'variable "{invocable.value}"' + obj = self.get_variable(invocable.value) else: - object_display_name = invokable.__class__.__name__ - obj = self.evaluate_statement(invokable) + object_display_name = invocable.__class__.__name__ + obj = self.evaluate_statement(invocable) method_name = node.name (h_args, h_kwargs) = self.reduce_arguments(node.args) (args, kwargs) = self._unholder_args(h_args, h_kwargs) -- cgit v1.1