Skip to content

Commit

Permalink
Use oldest supported version for pyrightVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsDrike committed Jan 6, 2025
1 parent 4648ef4 commit 2600201
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/examples/code/ping_as_java_and_bedrock_in_one_time.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import asyncio

from mcstatus import BedrockServer, JavaServer
Expand Down
3 changes: 2 additions & 1 deletion mcstatus/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyrightconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
// Documentation configuration files do not require type checking
"docs/conf.py"
],
"pythonVersion": "3.13"
"pythonVersion": "3.9"
}

0 comments on commit 2600201

Please sign in to comment.