Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions gamedig.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Dict, Literal, NotRequired, Optional, TypeAlias, TypedDict
from typing import Any, Literal, NotRequired, TypeAlias, TypedDict

class TimeoutSettings(TypedDict):
retries: int
Expand All @@ -18,10 +18,10 @@ class ExtraRequestSettings(TypedDict):
def query(
game_id: str,
address: str,
port: Optional[int] = None,
timeout_settings: Optional[TimeoutSettings] = None,
extra_settings: Optional[ExtraRequestSettings] = None,
) -> Dict[str, Any]: ...
port: int | None = None,
timeout_settings: TimeoutSettings | None = None,
extra_settings: ExtraRequestSettings | None = None,
) -> dict[str, Any]: ...

class GameDigError(Exception): ...
class PacketOverflowError(GameDigError): ...
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ dev = ["maturin>=1.9.6", "pytest>=8.3.3", "ruff>=0.6.9"]
features = ["pyo3/extension-module"]

[tool.ruff.lint]
extend-select = ["I"]
extend-select = ["I", "UP"]