mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-19 19:03:02 +08:00
pyupgrade --py37-plus **/*.py (#1654)
* pyupgrade --py37-plus **/*.py * fixup! Format Python code with psf/black push
This commit is contained in:

committed by
John Law

parent
34c808b375
commit
28419cf839
@ -9,9 +9,9 @@ def n31(a: int) -> Tuple[List[int], int]:
|
||||
"""
|
||||
|
||||
if not isinstance(a, int):
|
||||
raise TypeError("Must be int, not {0}".format(type(a).__name__))
|
||||
raise TypeError("Must be int, not {}".format(type(a).__name__))
|
||||
if a < 1:
|
||||
raise ValueError("Given integer must be greater than 1, not {0}".format(a))
|
||||
raise ValueError(f"Given integer must be greater than 1, not {a}")
|
||||
|
||||
path = [a]
|
||||
while a != 1:
|
||||
|
Reference in New Issue
Block a user