Source code for zoom_api_helper.models
__all__ = [
'Meeting',
]
from enum import Enum
from typing import TYPE_CHECKING
# noinspection GrazieInspection
if TYPE_CHECKING:
__all__ += ['RowType', 'ProcessRow', 'UpdateRow']
from datetime import datetime
from typing import Any
try:
from typing import Protocol
except ImportError: # Python 3.7
from typing_extensions import Protocol
# Type of Excel Row.
#
# Typically, `sheet2dict` passes this in as `dict[str, str]`, however the
# type restrictions can be lifted a little, so that a user assignment
# won't result in warnings.
RowType = dict[str, str | datetime | bool | int | float | dict | list | None]
class ProcessRow(Protocol):
def __call__(self, row: RowType) -> bool:
...
class UpdateRow(Protocol):
def __call__(self, row: RowType, resp: dict[str, Any]) -> None:
...
[docs]class Meeting(Enum):
"""
The type of Zoom meeting.
"""
INSTANT = 1
SCHEDULED = 2
RECURRING = 3
RECURRING_WITH_TIME = 8