From 903dfa19aca08b10d79d135777ede0afc45288f4 Mon Sep 17 00:00:00 2001 From: John Wuller <847785bd-d466-47cd-a536-eae4096d241d@anonaddy.me> Date: Sat, 15 Jun 2024 16:50:58 -0400 Subject: [PATCH] Fixed pylint formatting --- discord/ext/prometheus/prometheus_cog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/ext/prometheus/prometheus_cog.py b/discord/ext/prometheus/prometheus_cog.py index 65cc139..d1eaeff 100644 --- a/discord/ext/prometheus/prometheus_cog.py +++ b/discord/ext/prometheus/prometheus_cog.py @@ -2,7 +2,7 @@ from prometheus_client import start_http_server, Counter, Gauge from discord.ext import commands, tasks from discord import Interaction, InteractionType, AutoShardedClient -from discord.app_commands.commands import Command, ContextMenu +from discord.app_commands.commands import Command log = logging.getLogger("prometheus") @@ -128,13 +128,13 @@ async def on_interaction(self, interaction: Interaction): if isinstance(interaction.command, Command): command_name = "" parent = interaction.command.parent - while parent != None: + while parent is not None: command_name += parent.name + " " parent = parent.parent command_name += interaction.command.name else: command_name = interaction.command.name - + ON_INTERACTION_COUNTER.labels( shard_id, interaction.type.name, command_name ).inc()