diff --git a/src/deprecate/deprecation.py b/src/deprecate/deprecation.py index 69a4a42..aa1ff67 100644 --- a/src/deprecate/deprecation.py +++ b/src/deprecate/deprecation.py @@ -14,12 +14,12 @@ "The `%(source_name)s` was deprecated since v%(deprecated_in)s in favor of `%(target_path)s`." " It will be removed in v%(remove_in)s." ) -#: Default template warning message for chnaging argument mapping +#: Default template warning message for changing argument mapping TEMPLATE_WARNING_ARGUMENTS = ( "The `%(source_name)s` uses deprecated arguments: %(argument_map)s." " They were deprecated since v%(deprecated_in)s and will be removed in v%(remove_in)s." ) -#: Tempalte for mapping from old to new examples +#: Template for mapping from old to new examples TEMPLATE_ARGUMENT_MAPPING = "`%(old_arg)s` -> `%(new_arg)s`" #: Default template warning message for no target func/method TEMPLATE_WARNING_NO_TARGET = ( diff --git a/src/deprecate/utils.py b/src/deprecate/utils.py index 6f057a5..b42023e 100644 --- a/src/deprecate/utils.py +++ b/src/deprecate/utils.py @@ -15,7 +15,7 @@ def get_func_arguments_types_defaults(func: Callable) -> List[Tuple[str, Tuple, func: a function to be xeamined Returns: - sequence of details for each position/keyward argument + sequence of details for each position/keyword argument Example: >>> get_func_arguments_types_defaults(get_func_arguments_types_defaults)