From 2600201a1bcb0761cc834ffe744a6dadcccec9d1 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Mon, 6 Jan 2025 21:55:49 +0100 Subject: [PATCH] Use oldest supported version for pyrightVersion --- docs/examples/code/ping_as_java_and_bedrock_in_one_time.py | 1 + mcstatus/__main__.py | 3 ++- pyrightconfig.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/examples/code/ping_as_java_and_bedrock_in_one_time.py b/docs/examples/code/ping_as_java_and_bedrock_in_one_time.py index 16481b14..12c58fdf 100644 --- a/docs/examples/code/ping_as_java_and_bedrock_in_one_time.py +++ b/docs/examples/code/ping_as_java_and_bedrock_in_one_time.py @@ -1,3 +1,4 @@ +from __future__ import annotations import asyncio from mcstatus import BedrockServer, JavaServer diff --git a/mcstatus/__main__.py b/mcstatus/__main__.py index 1b4e5a5c..c07c3a47 100644 --- a/mcstatus/__main__.py +++ b/mcstatus/__main__.py @@ -7,13 +7,14 @@ import socket import dataclasses from typing import TYPE_CHECKING +from typing_extensions import TypeAlias from mcstatus import JavaServer, BedrockServer from mcstatus.responses import JavaStatusResponse from mcstatus.motd import Motd if TYPE_CHECKING: - SupportedServers = JavaServer | BedrockServer + SupportedServers: TypeAlias = "JavaServer | BedrockServer" def _motd(motd: Motd) -> str: diff --git a/pyrightconfig.json b/pyrightconfig.json index f46ada09..f24ac2cb 100644 --- a/pyrightconfig.json +++ b/pyrightconfig.json @@ -13,5 +13,5 @@ // Documentation configuration files do not require type checking "docs/conf.py" ], - "pythonVersion": "3.13" + "pythonVersion": "3.9" }