mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-07 03:07:46 +08:00
Fix type annotations for stack.py (#5566)
This commit is contained in:
@ -51,8 +51,8 @@ def dijkstras_two_stack_algorithm(equation: str) -> int:
|
||||
"""
|
||||
operators = {"*": op.mul, "/": op.truediv, "+": op.add, "-": op.sub}
|
||||
|
||||
operand_stack = Stack()
|
||||
operator_stack = Stack()
|
||||
operand_stack: Stack[int] = Stack()
|
||||
operator_stack: Stack[str] = Stack()
|
||||
|
||||
for i in equation:
|
||||
if i.isdigit():
|
||||
|
Reference in New Issue
Block a user