Skip to content

Commit ff6d493

Browse files
committed
Re-generate Python bindings typings
1 parent cb13288 commit ff6d493

File tree

6 files changed

+164
-46
lines changed

6 files changed

+164
-46
lines changed

server/parsec/_parsec_pyi/protocol/__init__.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from __future__ import annotations
66

7-
from . import anonymous_cmds, authenticated_cmds, invited_cmds
7+
from . import anonymous_cmds, authenticated_cmds, invited_cmds, tos_cmds
88

99
class ActiveUsersLimit:
1010
NO_LIMIT: ActiveUsersLimit
@@ -23,4 +23,4 @@ class ActiveUsersLimit:
2323
def __lt__(self, other: object) -> bool: ...
2424
def __ne__(self, other: object) -> bool: ...
2525

26-
__all__ = ["ActiveUsersLimit", "anonymous_cmds", "authenticated_cmds", "invited_cmds"]
26+
__all__ = ["ActiveUsersLimit", "anonymous_cmds", "authenticated_cmds", "invited_cmds", "tos_cmds"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Parsec Cloud (https://parsec.cloud) Copyright (c) BUSL-1.1 2016-present Scille SAS
2+
3+
# /!\ Autogenerated by misc/gen_protocol_typings.py, any modification will be lost !
4+
5+
from __future__ import annotations
6+
7+
from . import v4
8+
from . import v4 as latest
9+
10+
__all__ = ["latest", "v4"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Parsec Cloud (https://parsec.cloud) Copyright (c) BUSL-1.1 2016-present Scille SAS
2+
3+
# /!\ Autogenerated by misc/gen_protocol_typings.py, any modification will be lost !
4+
5+
from __future__ import annotations
6+
7+
from . import tos_accept, tos_get
8+
9+
class AnyCmdReq:
10+
@classmethod
11+
def load(cls, raw: bytes) -> tos_accept.Req | tos_get.Req: ...
12+
13+
__all__ = ["AnyCmdReq", "tos_accept", "tos_get"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Parsec Cloud (https://parsec.cloud) Copyright (c) BUSL-1.1 2016-present Scille SAS
2+
3+
# /!\ Autogenerated by misc/gen_protocol_typings.py, any modification will be lost !
4+
5+
from __future__ import annotations
6+
7+
from parsec._parsec import DateTime
8+
9+
class Req:
10+
def __init__(self, tos_updated_on: DateTime) -> None: ...
11+
def dump(self) -> bytes: ...
12+
@property
13+
def tos_updated_on(self) -> DateTime: ...
14+
15+
class Rep:
16+
@staticmethod
17+
def load(raw: bytes) -> Rep: ...
18+
def dump(self) -> bytes: ...
19+
20+
class RepUnknownStatus(Rep):
21+
def __init__(self, status: str, reason: str | None) -> None: ...
22+
@property
23+
def status(self) -> str: ...
24+
@property
25+
def reason(self) -> str | None: ...
26+
27+
class RepOk(Rep):
28+
def __init__(
29+
self,
30+
) -> None: ...
31+
32+
class RepNoTos(Rep):
33+
def __init__(
34+
self,
35+
) -> None: ...
36+
37+
class RepTosMismatch(Rep):
38+
def __init__(
39+
self,
40+
) -> None: ...
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Parsec Cloud (https://parsec.cloud) Copyright (c) BUSL-1.1 2016-present Scille SAS
2+
3+
# /!\ Autogenerated by misc/gen_protocol_typings.py, any modification will be lost !
4+
5+
from __future__ import annotations
6+
7+
from parsec._parsec import DateTime
8+
9+
class Req:
10+
def __init__(
11+
self,
12+
) -> None: ...
13+
def dump(self) -> bytes: ...
14+
15+
class Rep:
16+
@staticmethod
17+
def load(raw: bytes) -> Rep: ...
18+
def dump(self) -> bytes: ...
19+
20+
class RepUnknownStatus(Rep):
21+
def __init__(self, status: str, reason: str | None) -> None: ...
22+
@property
23+
def status(self) -> str: ...
24+
@property
25+
def reason(self) -> str | None: ...
26+
27+
class RepOk(Rep):
28+
def __init__(self, per_locale_url: dict[str, str], updated_on: DateTime) -> None: ...
29+
@property
30+
def per_locale_url(self) -> dict[str, str]: ...
31+
@property
32+
def updated_on(self) -> DateTime: ...
33+
34+
class RepNoTos(Rep):
35+
def __init__(
36+
self,
37+
) -> None: ...

0 commit comments

Comments
 (0)