From 332f34cba3768f065ea646d981987668df2b68d6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 18:28:38 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- maths/prime_factorization_fast.py | 3 ++- maths/prime_factors.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/maths/prime_factorization_fast.py b/maths/prime_factorization_fast.py index 8e134627e..fd302a89d 100644 --- a/maths/prime_factorization_fast.py +++ b/maths/prime_factorization_fast.py @@ -16,7 +16,7 @@ def timer(func: callable) -> callable: def wrapper(*args: Any, **kwargs: Any) -> Any: """ Wraps the given function and measures its execution time. - + :param args: Positional arguments for the function. :param kwargs: Keyword arguments for the function. :return: The result of the wrapped function. @@ -135,6 +135,7 @@ if __name__ == "__main__": primeproduct(n) prime_factors(n) import doctest + doctest.NORMALIZE_WHITESPACE doctest.testmod() diff --git a/maths/prime_factors.py b/maths/prime_factors.py index 8e134627e..fd302a89d 100644 --- a/maths/prime_factors.py +++ b/maths/prime_factors.py @@ -16,7 +16,7 @@ def timer(func: callable) -> callable: def wrapper(*args: Any, **kwargs: Any) -> Any: """ Wraps the given function and measures its execution time. - + :param args: Positional arguments for the function. :param kwargs: Keyword arguments for the function. :return: The result of the wrapped function. @@ -135,6 +135,7 @@ if __name__ == "__main__": primeproduct(n) prime_factors(n) import doctest + doctest.NORMALIZE_WHITESPACE doctest.testmod()