fix: no implicit optional (#7984)

This commit is contained in:
Dhruv Manilawala
2022-11-15 19:25:14 +05:30
committed by GitHub
parent 316e71b034
commit 3bf86b91e7
6 changed files with 6 additions and 6 deletions

View File

@@ -71,7 +71,7 @@ def sum_digit_factorials(n: int) -> int:
return ret
def chain_length(n: int, previous: set = None) -> int:
def chain_length(n: int, previous: set | None = None) -> int:
"""
Calculate the length of the chain of non-repeating terms starting with n.
Previous is a set containing the previous member of the chain.