diff options
author | Christian Clauss <cclauss@me.com> | 2021-10-01 00:03:23 +0200 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2021-10-10 16:12:25 -0400 |
commit | a5020857f31ad6d03bc7c0019551cc28b9e5aad5 (patch) | |
tree | fdf9e08b2c37877e44fb4cdf91cc2ee45c868e6a /mesonbuild/interpreterbase | |
parent | 32b7cbd4a7cd8cffb47c5465301141eaad599eaa (diff) | |
download | meson-a5020857f31ad6d03bc7c0019551cc28b9e5aad5.zip meson-a5020857f31ad6d03bc7c0019551cc28b9e5aad5.tar.gz meson-a5020857f31ad6d03bc7c0019551cc28b9e5aad5.tar.bz2 |
Fix typos discovered by codespell
Diffstat (limited to 'mesonbuild/interpreterbase')
-rw-r--r-- | mesonbuild/interpreterbase/baseobjects.py | 2 | ||||
-rw-r--r-- | mesonbuild/interpreterbase/decorators.py | 10 | ||||
-rw-r--r-- | mesonbuild/interpreterbase/operator.py | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/mesonbuild/interpreterbase/baseobjects.py b/mesonbuild/interpreterbase/baseobjects.py index 7e98b48..992ee14 100644 --- a/mesonbuild/interpreterbase/baseobjects.py +++ b/mesonbuild/interpreterbase/baseobjects.py @@ -145,7 +145,7 @@ class ObjectHolder(InterpreterObject, T.Generic[InterpreterObjectTypeVar]): self.interpreter = interpreter self.env = self.interpreter.environment - # Hide the object holder abstrction from the user + # Hide the object holder abstraction from the user def display_name(self) -> str: return type(self.held_object).__name__ diff --git a/mesonbuild/interpreterbase/decorators.py b/mesonbuild/interpreterbase/decorators.py index 54a4960..5030b48 100644 --- a/mesonbuild/interpreterbase/decorators.py +++ b/mesonbuild/interpreterbase/decorators.py @@ -165,7 +165,7 @@ def typed_pos_args(name: str, *types: T.Union[T.Type, T.Tuple[T.Type, ...]], min_varargs: int = 0, max_varargs: int = 0) -> T.Callable[..., T.Any]: """Decorator that types type checking of positional arguments. - This supports two different models of optional aguments, the first is the + This supports two different models of optional arguments, the first is the variadic argument model. Variadic arguments are a possibly bounded, possibly unbounded number of arguments of the same type (unions are supported). The second is the standard default value model, in this case @@ -180,7 +180,7 @@ def typed_pos_args(name: str, *types: T.Union[T.Type, T.Tuple[T.Type, ...]], :min_varargs: the minimum number of variadic arguments taken :max_varargs: the maximum number of variadic arguments taken. 0 means unlimited :optargs: The types of any optional arguments parameters taken. If None - then no optional paramters are taken. + then no optional parameters are taken. Some examples of usage blow: >>> @typed_pos_args('mod.func', str, (str, int)) @@ -370,12 +370,12 @@ class KwargInfo(T.Generic[_T]): :param convertor: A callable that converts the raw input value into a different type. This is intended for cases such as the meson DSL using a string, but the implementation using an Enum. This should not do - validation, just converstion. + validation, just conversion. :param deprecated_values: a dictionary mapping a value to the version of meson it was deprecated in. :param since_values: a dictionary mapping a value to the version of meson it was added in. - :param not_set_warning: A warning messsage that is logged if the kwarg is not + :param not_set_warning: A warning message that is logged if the kwarg is not set by the user. """ def __init__(self, name: str, @@ -450,7 +450,7 @@ def typed_kwargs(name: str, *types: KwargInfo) -> T.Callable[..., T.Any]: If type tyhpe 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 ot + :param name: the name of the function, including the object it's attached to (if applicable) :param *types: KwargInfo entries for each keyword argument. """ diff --git a/mesonbuild/interpreterbase/operator.py b/mesonbuild/interpreterbase/operator.py index cfaddc7..5dec8d0 100644 --- a/mesonbuild/interpreterbase/operator.py +++ b/mesonbuild/interpreterbase/operator.py @@ -18,7 +18,7 @@ class MesonOperator(Enum): # Should return the boolsche interpretation of the value (`'' == false` for instance) BOOL = 'bool()' - # Comparision + # Comparison EQUALS = '==' NOT_EQUALS = '!=' GREATER = '>' |