-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgamedig.pyi
More file actions
42 lines (37 loc) · 1.4 KB
/
gamedig.pyi
File metadata and controls
42 lines (37 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
from typing import Any, Literal, NotRequired, TypeAlias, TypedDict
class TimeoutSettings(TypedDict):
retries: int
read: NotRequired[int]
write: NotRequired[int]
connect: NotRequired[int]
GatherToggle: TypeAlias = Literal["Skip", "Try", "Enforce"]
class ExtraRequestSettings(TypedDict):
hostname: NotRequired[str]
protocol_version: NotRequired[int]
gather_players: NotRequired[GatherToggle]
gather_rules: NotRequired[GatherToggle]
check_app_id: NotRequired[bool]
def query(
game_id: str,
address: str,
port: int | None = None,
timeout_settings: TimeoutSettings | None = None,
extra_settings: ExtraRequestSettings | None = None,
) -> dict[str, Any]: ...
class GameDigError(Exception): ...
class PacketOverflowError(GameDigError): ...
class PacketUnderflowError(GameDigError): ...
class PacketBadError(GameDigError): ...
class PacketSendError(GameDigError): ...
class PacketReceiveError(GameDigError): ...
class DigDecompressError(GameDigError): ...
class DigSocketConnectError(GameDigError): ...
class SocketBindError(GameDigError): ...
class InvalidInputError(GameDigError): ...
class BadGameError(GameDigError): ...
class AutoQueryError(GameDigError): ...
class ProtocolFormatError(GameDigError): ...
class UnknownEnumCastError(GameDigError): ...
class JsonParseError(GameDigError): ...
class TypeParseError(GameDigError): ...
class HostLookupError(GameDigError): ...