fix(pterodactyl): updated typehints

This commit is contained in:
Seaswimmer 2024-02-29 23:31:30 -05:00
parent e1c98aa78f
commit 2bf8629e4c
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -1,8 +1,11 @@
import asyncio
import json
from typing import Optional
import discord
import websockets
from pydactyl import PterodactylClient
from redbot.core import commands
from redbot.core.bot import Red
from redbot.core.utils.chat_formatting import box
@ -17,9 +20,9 @@ class Pterodactyl(commands.Cog):
def __init__(self, bot: Red):
self.bot = bot
self.client = None
self.task = None
self.websocket = None
self.client: Optional[PterodactylClient] = None
self.task: Optional[asyncio.Task] = None
self.websocket: Optional[websockets.WebSocketClientProtocol] = None
async def cog_load(self) -> None:
self.task = self.get_task()