election_day.models.election_compound.part
Attributes
Classes
| Abstract base class for generic types. | |
| A part of an election compound. | 
Module Contents
- class election_day.models.election_compound.part.inherited_attribute[source]
- Bases: - Generic[- T]- 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 
- class election_day.models.election_compound.part.ElectionCompoundPart(election_compound: onegov.election_day.models.ElectionCompound, domain: str, segment: str)[source]
- Bases: - onegov.election_day.models.election_compound.mixins.DerivedAttributesMixin,- onegov.election_day.models.party_result.mixins.PartyResultsCheckMixin,- onegov.election_day.models.party_result.mixins.HistoricalPartyResultsMixin- A part of an election compound. - Covers a part of an election compound between the domain of the compound and the domain of the elections. - There is no database object behind a part of an election compound, all the results are either taken from the compound (parties) or elections (candidates)- - date: inherited_attribute[datetime.date][source]
 - completes_manually: inherited_attribute[bool][source]
 - manually_completed: inherited_attribute[bool][source]