mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
refactor: Indent ... for visual purposes (#7744)
This commit is contained in:
committed by
GitHub
parent
e8915097c4
commit
9bba42eca8
@@ -21,7 +21,7 @@ def infix_to_postfix(expression_str: str) -> str:
|
||||
"""
|
||||
>>> infix_to_postfix("(1*(2+3)+4))")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Mismatched parentheses
|
||||
>>> infix_to_postfix("")
|
||||
''
|
||||
|
||||
@@ -109,7 +109,7 @@ class LinkedStack(Generic[T]):
|
||||
>>> stack = LinkedStack()
|
||||
>>> stack.pop()
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
IndexError: pop from empty stack
|
||||
>>> stack.push("c")
|
||||
>>> stack.push("b")
|
||||
|
||||
Reference in New Issue
Block a user