fix(pterodactyl): updated typehints
This commit is contained in:
parent
e1c98aa78f
commit
2bf8629e4c
1 changed files with 6 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue