From 14dfafea2a95b8c2fbdb6b3563b5f98c796d1452 Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Sat, 25 May 2024 17:20:33 -0400 Subject: [PATCH] fix(speedtest): fixed an AttributeError --- speedtest/speedtest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/speedtest/speedtest.py b/speedtest/speedtest.py index 96ad02d..4d16bc2 100644 --- a/speedtest/speedtest.py +++ b/speedtest/speedtest.py @@ -8,6 +8,7 @@ import asyncio import json import subprocess +from typing import Any import discord from redbot.core import commands @@ -34,7 +35,7 @@ class Speedtest(commands.Cog): ] return "\n".join(text) - async def run_speedtest(self) -> str | asyncio.Any: + async def run_speedtest(self) -> str | Any: process = await asyncio.create_subprocess_exec( "speedtest", "-f json", "--accept-license", stdout=subprocess.PIPE,