Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Commit

Permalink
Use literal syntax instead of function calls to create data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsource-autofix[bot] authored and alissonlauffer committed Mar 9, 2021
1 parent 399ccee commit 77aa3b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/callback/datecalca.py
Expand Up @@ -38,7 +38,7 @@
object.
"""

user_ballots = dict()
user_ballots = {}

class DateCalculator(InlineUserHandler,
AnswererMixin,
Expand Down
2 changes: 1 addition & 1 deletion examples/callback/lovera.py
Expand Up @@ -24,7 +24,7 @@
Proposing is a private matter. This bot only works in a private chat.
"""

propose_records = dict()
propose_records = {}

class Lover(amanobot.aio.helper.ChatHandler):
keyboard = InlineKeyboardMarkup(inline_keyboard=[[
Expand Down
2 changes: 1 addition & 1 deletion examples/callback/votea.py
Expand Up @@ -23,7 +23,7 @@
This is the chat-centric approach.
"""

votes = dict()
votes = {}

class VoteCounter(amanobot.aio.helper.ChatHandler):
def __init__(self, *args, **kwargs):
Expand Down

0 comments on commit 77aa3b4

Please sign in to comment.