Skip to content

Commit 4131323

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 07edd68 commit 4131323

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

data_structures/stacks/lexicographical_numbers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from typing import Iterator
22

3+
34
def lexical_order(max_number: int) -> Iterator[str]:
45
"""
56
Generate numbers in lexical order from 1 to max_number.
@@ -23,7 +24,7 @@ def lexical_order(max_number: int) -> Iterator[str]:
2324
if num > max_number:
2425
continue
2526

26-
yield(str(num))
27+
yield (str(num))
2728
if (num % 10) != 9:
2829
stack.append(num + 1)
2930

0 commit comments

Comments
 (0)