Fix psf/black issues than fail the build (#1935)

* Fix psf/black issues than fail the build

* fixup! Format Python code with psf/black push

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
Christian Clauss
2020-05-03 23:58:44 +02:00
committed by GitHub
parent 9b2d65bac1
commit d1b25760bc
3 changed files with 12 additions and 8 deletions

View File

@ -46,11 +46,11 @@ class Stack:
def size(self):
""" Return the size of the stack."""
return len(self.stack)
def __contains__(self, item) -> bool:
"""Check if item is in stack"""
return item in self.stack
class StackOverflowError(BaseException):
pass
@ -73,4 +73,3 @@ if __name__ == "__main__":
num = 5
if num in stack:
print(f"{num} is in stack")