misc(pterodactyl): added a missing typehint
This commit is contained in:
parent
acb737f0a6
commit
1a23a2778a
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
import aiohttp
|
||||
|
||||
|
||||
async def get_status(host, port = 25565) -> tuple[bool, dict]:
|
||||
async def get_status(host: str, port: int = 25565) -> tuple[bool, dict]:
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.get(f'https://api.mcsrvstat.us/2/{host}:{port}') as response:
|
||||
response = await response.json()
|
||||
|
|
Loading…
Reference in a new issue