[~] Simple type fix

This commit is contained in:
Charles Le Maux 2024-09-21 12:46:48 +02:00
parent 8d5993e84b
commit 8147d5e01a

View File

@ -124,7 +124,7 @@ def fetch_players_status(user: UserRecord, name: str) -> tuple[HTTPStatus, Union
def fetch_dir_content(user: UserRecord, name: str) -> tuple[HTTPStatus, Union[str, list]]: def fetch_dir_content(user: UserRecord, name: str) -> tuple[HTTPStatus, Union[str, list]]:
user_id: str = user.uid user_id: str = user.uid
server_path: str = f"users/{user_id}/{name}/" server_path: str = f"users/{user_id}/{name}/"
dirs: dict[str, [str, str]] = { dirs: dict[str, list[str]] = {
'plugins': ['plugins', '.jar'], 'plugins': ['plugins', '.jar'],
'datapack' : ['world/datapacks', '.zip'], 'datapack' : ['world/datapacks', '.zip'],
} }