From b5bb5c65d0aae09069a2d0588fff9b1687cdeb81 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 1 Oct 2023 12:47:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/deprecate/deprecation.py | 4 ++-- src/deprecate/utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)