feriennet.collections.occasion_attendees
Classes
dict() -> new empty dictionary |
|
Abstract base class for generic types. |
Module Contents
- class feriennet.collections.occasion_attendees.ContactInfo[source]
Bases:
TypedDict
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
- dict(iterable) -> new dictionary initialized as if via:
d = {} for k, v in iterable:
d[k] = v
- dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
- class feriennet.collections.occasion_attendees.OccasionAttendee[source]
Bases:
NamedTuple
- info: ContactInfo[source]
- class feriennet.collections.occasion_attendees.OccasionAttendeeCollection(session: sqlalchemy.orm.Session, period: Period | PeriodMeta, activity: onegov.activity.Activity, username: str | None = None)[source]
Bases:
onegov.activity.OccasionCollection
Abstract base class for generic types.
A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:
class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc.
This class can then be used as follows:
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default
- for_period(period: Period | PeriodMeta) Self [source]
- occasions() dict[onegov.activity.Occasion, list[OccasionAttendee]] [source]