Typehint state.py

This commit is contained in:
Stocker authored and GitHub committed 2021-08-21 14:39:02 -04:00
1 parent 166152647c
commit 7592300535
3 files changed
+234 -176

No files matched your search

+231 -174
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -61,6 +61,7 @@ class _PartialAppInfoOptional(TypedDict, total=False):
terms_of_service_url: str
privacy_policy_url: str
max_participants: int
flags: int
class PartialAppInfo(_PartialAppInfoOptional, BaseAppInfo):
pass
+2 -2
View File
@@ -24,14 +24,14 @@ DEALINGS IN THE SOFTWARE.
from typing import Optional, TypedDict, List, Literal
from .snowflake import Snowflake
from .member import Member
from .member import GatewayMember
SupportedModes = Literal['xsalsa20_poly1305_lite', 'xsalsa20_poly1305_suffix', 'xsalsa20_poly1305']
class _PartialVoiceStateOptional(TypedDict, total=False):
member: Member
member: GatewayMember
self_stream: bool