misc(pterodactyl): added a missing typehint
All checks were successful
Actions / Build Documentation (MkDocs) (push) Successful in 39s
Actions / Lint Code (Ruff & Pylint) (push) Successful in 54s

This commit is contained in:
SeaswimmerTheFsh 2024-05-03 19:42:32 -04:00
parent acb737f0a6
commit 1a23a2778a
Signed by: Seaswimmer
GPG key ID: 5D671B5D03D65A7F

View file

@ -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()