Typehint state.py
This commit is contained in:
1 parent
166152647c
commit
7592300535
3 files changed
+236
-178
No files matched your search
+233
-176
File diff suppressed because it is too large.
Load diff
@@ -61,6 +61,7 @@ class _PartialAppInfoOptional(TypedDict, total=False):
|
|||||||
terms_of_service_url: str
|
terms_of_service_url: str
|
||||||
privacy_policy_url: str
|
privacy_policy_url: str
|
||||||
max_participants: int
|
max_participants: int
|
||||||
|
flags: int
|
||||||
|
|
||||||
class PartialAppInfo(_PartialAppInfoOptional, BaseAppInfo):
|
class PartialAppInfo(_PartialAppInfoOptional, BaseAppInfo):
|
||||||
pass
|
pass
|
||||||
@@ -24,14 +24,14 @@ DEALINGS IN THE SOFTWARE.
|
|||||||
|
|
||||||
from typing import Optional, TypedDict, List, Literal
|
from typing import Optional, TypedDict, List, Literal
|
||||||
from .snowflake import Snowflake
|
from .snowflake import Snowflake
|
||||||
from .member import Member
|
from .member import GatewayMember
|
||||||
|
|
||||||
|
|
||||||
SupportedModes = Literal['xsalsa20_poly1305_lite', 'xsalsa20_poly1305_suffix', 'xsalsa20_poly1305']
|
SupportedModes = Literal['xsalsa20_poly1305_lite', 'xsalsa20_poly1305_suffix', 'xsalsa20_poly1305']
|
||||||
|
|
||||||
|
|
||||||
class _PartialVoiceStateOptional(TypedDict, total=False):
|
class _PartialVoiceStateOptional(TypedDict, total=False):
|
||||||
member: Member
|
member: GatewayMember
|
||||||
self_stream: bool
|
self_stream: bool
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user