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 asyncio
|
||||||
import json
|
import json
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
|
|
||||||
import discord
|
import discord
|
||||||
import websockets
|
import websockets
|
||||||
|
from pydactyl import PterodactylClient
|
||||||
from redbot.core import commands
|
from redbot.core import commands
|
||||||
from redbot.core.bot import Red
|
from redbot.core.bot import Red
|
||||||
from redbot.core.utils.chat_formatting import box
|
from redbot.core.utils.chat_formatting import box
|
||||||
|
@ -17,9 +20,9 @@ class Pterodactyl(commands.Cog):
|
||||||
|
|
||||||
def __init__(self, bot: Red):
|
def __init__(self, bot: Red):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
self.client = None
|
self.client: Optional[PterodactylClient] = None
|
||||||
self.task = None
|
self.task: Optional[asyncio.Task] = None
|
||||||
self.websocket = None
|
self.websocket: Optional[websockets.WebSocketClientProtocol] = None
|
||||||
|
|
||||||
async def cog_load(self) -> None:
|
async def cog_load(self) -> None:
|
||||||
self.task = self.get_task()
|
self.task = self.get_task()
|
||||||
|
|
Loading…
Reference in a new issue