Skip to content

Commit 33d4460

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a3ac53a commit 33d4460

File tree

4 files changed

+9
-14
lines changed

4 files changed

+9
-14
lines changed

alembic/versions/b793e74202bd_add_bot_user_table.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Create Date: 2022-12-17 17:41:34.916176
66
77
"""
8+
89
import sqlalchemy as sa
910

1011
from alembic import op

hashtablebot/banking/bank_user.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22

33

44
class BankUser(Protocol):
5-
def withdraw(self, amount: int):
6-
...
5+
def withdraw(self, amount: int): ...
76

8-
def deposit(self, amount: int):
9-
...
7+
def deposit(self, amount: int): ...
108

11-
def name(self) -> str:
12-
...
9+
def name(self) -> str: ...
1310

14-
def get_balance(self) -> int:
15-
...
11+
def get_balance(self) -> int: ...

hashtablebot/banking/transaction.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22

33

44
class Transaction(Protocol):
5-
def execute(self) -> None:
6-
...
5+
def execute(self) -> None: ...
76

8-
def undo(self) -> None:
9-
...
7+
def undo(self) -> None: ...
108

11-
def redo(self) -> None:
12-
...
9+
def redo(self) -> None: ...

hashtablebot/bot_exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Custom exceptions created for the bot
33
"""
4+
45
from abc import ABC, abstractmethod
56

67

0 commit comments

Comments
 (0)