Skip to content

Commit

Permalink
pylint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MothScientist committed Dec 10, 2024
1 parent 6c1930e commit e675525
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions budget_graph/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@ def get_timezone_buttons() -> tuple:
rows: list = []
row_width: int = 4

[rows.append(buttons_timezone_negative[i: i + row_width]) for i in range(0, 12, row_width)]
# pylint: disable=expression-not-assigned
[rows.append(buttons_timezone_negative[i: i + row_width]) for i in range(0, 12, row_width)] # append
rows.append([InlineKeyboardButton('UTC', callback_data='change_timezone_0')])
[rows.append(buttons_timezone_positive[j: j + row_width]) for j in range(0, 12, row_width)]
# pylint: disable=expression-not-assigned
[rows.append(buttons_timezone_positive[j: j + row_width]) for j in range(0, 12, row_width)] # append

return tuple(rows)

Expand Down
2 changes: 1 addition & 1 deletion budget_graph/registration_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
logger_registration = setup_logger("logs/RegistrationLog.log", "registration_logger")


# pylint: disable=too-many-arguments
# pylint: disable=too-many-arguments, too-many-positional-arguments
def user_registration(db_connection, token: str, telegram_id: int, username: str, psw_salt: str, psw_hash: str) \
-> tuple[bool, str]:
"""
Expand Down

0 comments on commit e675525

Please sign in to comment.