[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-10-10 23:17:25 +00:00
parent 2b102bb260
commit af8ae4e1e4

View File

@ -5,12 +5,12 @@
def binary_exponentiation(a: int, n: int) -> int: def binary_exponentiation(a: int, n: int) -> int:
''' """
>>> binary_exponentiation(3, 5) >>> binary_exponentiation(3, 5)
243 243
>>> binary_exponentiation(10, 3) >>> binary_exponentiation(10, 3)
1000 1000
''' """
if n == 0: if n == 0:
return 1 return 1
@ -24,6 +24,7 @@ def binary_exponentiation(a: int, n: int) -> int:
if __name__ == "__main__": if __name__ == "__main__":
import doctest import doctest
doctest.testmod() doctest.testmod()
try: try: