Skip to content

Commit

Permalink
Re-generate Python bindings typings
Browse files Browse the repository at this point in the history
  • Loading branch information
touilleMan committed Oct 4, 2024
1 parent d6012e4 commit fa2c652
Show file tree
Hide file tree
Showing 6 changed files with 164 additions and 46 deletions.
4 changes: 2 additions & 2 deletions server/parsec/_parsec_pyi/protocol/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from __future__ import annotations

from . import anonymous_cmds, authenticated_cmds, invited_cmds
from . import anonymous_cmds, authenticated_cmds, invited_cmds, tos_cmds

class ActiveUsersLimit:
NO_LIMIT: ActiveUsersLimit
Expand All @@ -23,4 +23,4 @@ class ActiveUsersLimit:
def __lt__(self, other: object) -> bool: ...
def __ne__(self, other: object) -> bool: ...

__all__ = ["ActiveUsersLimit", "anonymous_cmds", "authenticated_cmds", "invited_cmds"]
__all__ = ["ActiveUsersLimit", "anonymous_cmds", "authenticated_cmds", "invited_cmds", "tos_cmds"]
10 changes: 10 additions & 0 deletions server/parsec/_parsec_pyi/protocol/tos_cmds/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Parsec Cloud (https://parsec.cloud) Copyright (c) BUSL-1.1 2016-present Scille SAS

# /!\ Autogenerated by misc/gen_protocol_typings.py, any modification will be lost !

from __future__ import annotations

from . import v4
from . import v4 as latest

__all__ = ["latest", "v4"]
13 changes: 13 additions & 0 deletions server/parsec/_parsec_pyi/protocol/tos_cmds/v4/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Parsec Cloud (https://parsec.cloud) Copyright (c) BUSL-1.1 2016-present Scille SAS

# /!\ Autogenerated by misc/gen_protocol_typings.py, any modification will be lost !

from __future__ import annotations

from . import tos_accept, tos_get

class AnyCmdReq:
@classmethod
def load(cls, raw: bytes) -> tos_accept.Req | tos_get.Req: ...

__all__ = ["AnyCmdReq", "tos_accept", "tos_get"]
40 changes: 40 additions & 0 deletions server/parsec/_parsec_pyi/protocol/tos_cmds/v4/tos_accept.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Parsec Cloud (https://parsec.cloud) Copyright (c) BUSL-1.1 2016-present Scille SAS

# /!\ Autogenerated by misc/gen_protocol_typings.py, any modification will be lost !

from __future__ import annotations

from parsec._parsec import DateTime

class Req:
def __init__(self, tos_updated_on: DateTime) -> None: ...
def dump(self) -> bytes: ...
@property
def tos_updated_on(self) -> DateTime: ...

class Rep:
@staticmethod
def load(raw: bytes) -> Rep: ...
def dump(self) -> bytes: ...

class RepUnknownStatus(Rep):
def __init__(self, status: str, reason: str | None) -> None: ...
@property
def status(self) -> str: ...
@property
def reason(self) -> str | None: ...

class RepOk(Rep):
def __init__(
self,
) -> None: ...

class RepNoTos(Rep):
def __init__(
self,
) -> None: ...

class RepTosMismatch(Rep):
def __init__(
self,
) -> None: ...
37 changes: 37 additions & 0 deletions server/parsec/_parsec_pyi/protocol/tos_cmds/v4/tos_get.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Parsec Cloud (https://parsec.cloud) Copyright (c) BUSL-1.1 2016-present Scille SAS

# /!\ Autogenerated by misc/gen_protocol_typings.py, any modification will be lost !

from __future__ import annotations

from parsec._parsec import DateTime

class Req:
def __init__(
self,
) -> None: ...
def dump(self) -> bytes: ...

class Rep:
@staticmethod
def load(raw: bytes) -> Rep: ...
def dump(self) -> bytes: ...

class RepUnknownStatus(Rep):
def __init__(self, status: str, reason: str | None) -> None: ...
@property
def status(self) -> str: ...
@property
def reason(self) -> str | None: ...

class RepOk(Rep):
def __init__(self, per_locale_urls: dict[str, str], updated_on: DateTime) -> None: ...
@property
def per_locale_urls(self) -> dict[str, str]: ...
@property
def updated_on(self) -> DateTime: ...

class RepNoTos(Rep):
def __init__(
self,
) -> None: ...
Loading

0 comments on commit fa2c652

Please sign in to comment.