Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 15, 2024
1 parent 5863561 commit 1a7ceba
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
1 change: 1 addition & 0 deletions alembic/versions/b793e74202bd_add_bot_user_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-12-17 17:41:34.916176
"""

import sqlalchemy as sa

from alembic import op
Expand Down
12 changes: 4 additions & 8 deletions hashtablebot/banking/bank_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@


class BankUser(Protocol):
def withdraw(self, amount: int):
...
def withdraw(self, amount: int): ...

def deposit(self, amount: int):
...
def deposit(self, amount: int): ...

def name(self) -> str:
...
def name(self) -> str: ...

def get_balance(self) -> int:
...
def get_balance(self) -> int: ...
9 changes: 3 additions & 6 deletions hashtablebot/banking/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@


class Transaction(Protocol):
def execute(self) -> None:
...
def execute(self) -> None: ...

def undo(self) -> None:
...
def undo(self) -> None: ...

def redo(self) -> None:
...
def redo(self) -> None: ...
1 change: 1 addition & 0 deletions hashtablebot/bot_exceptions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Custom exceptions created for the bot
"""

from abc import ABC, abstractmethod


Expand Down

0 comments on commit 1a7ceba

Please sign in to comment.