[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-10-02 16:23:51 +00:00
parent d5acc58069
commit 9f95fecc89

View File

@ -1,5 +1,6 @@
from stack import Stack # Assuming you have a Stack class defined in 'stack.py' from stack import Stack # Assuming you have a Stack class defined in 'stack.py'
def reverse_stack(stack): def reverse_stack(stack):
""" """
Reverse the elements of a stack using another stack. Reverse the elements of a stack using another stack.
@ -33,6 +34,7 @@ def reverse_stack(stack):
item = reversed_stack.pop() item = reversed_stack.pop()
stack.push(item) stack.push(item)
if __name__ == "__main__": if __name__ == "__main__":
from doctest import testmod from doctest import testmod