mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
cfb91ebdef
commit
332f34cba3
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user