mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
[mypy] Fix type annotations for linked_stack.py, evaluate_postfix_notations.py, stack.py in data structures (#4409)
* [mypy] Fix type annotations for linked_stack.py, next_greater_element.py, stack.py * Reformatted files according to black
This commit is contained in:

committed by
GitHub

parent
727341e3db
commit
deb71167e7
@ -1,3 +1,6 @@
|
||||
from typing import List
|
||||
|
||||
|
||||
class StackOverflowError(BaseException):
|
||||
pass
|
||||
|
||||
@ -12,7 +15,7 @@ class Stack:
|
||||
"""
|
||||
|
||||
def __init__(self, limit: int = 10):
|
||||
self.stack = []
|
||||
self.stack: List[int] = []
|
||||
self.limit = limit
|
||||
|
||||
def __bool__(self) -> bool:
|
||||
|
Reference in New Issue
Block a user