From fbec4168468805602268917b04834b9d2ad5d8a1 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sun, 15 Feb 2026 22:36:27 -0500 Subject: [PATCH] fix(views): use dict literals for donation_methods Replace nested dict(...) constructor usage with dict literals in DonateCommandView.donation_methods for improved readability and consistent formatting (added trailing commas and uniform quoting). No functional changes intended. --- src/discord_bot/views.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/discord_bot/views.py b/src/discord_bot/views.py index 591cdfc..97b7664 100644 --- a/src/discord_bot/views.py +++ b/src/discord_bot/views.py @@ -278,20 +278,20 @@ class DonateCommandView(discord.ui.View): def __init__(self): super().__init__(timeout=None) # timeout of the view must be set to None, view is persistent - self.donation_methods = dict( - github=dict( - name='GitHub', - url='https://github.com/sponsors/LizardByte' - ), - patreon=dict( - name='Patreon', - url='https://www.patreon.com/LizardByte' - ), - paypal=dict( - name='PayPal', - url='https://paypal.me/ReenigneArcher' - ) - ) + self.donation_methods = { + 'github': { + 'name': 'GitHub', + 'url': 'https://github.com/sponsors/LizardByte', + }, + 'patreon': { + 'name': 'Patreon', + 'url': 'https://www.patreon.com/LizardByte', + }, + 'paypal': { + 'name': 'PayPal', + 'url': 'https://paypal.me/ReenigneArcher', + }, + } for method in self.donation_methods: button = discord.ui.Button(