election_day.types

Attributes

DomainOfInfluence

Status

Gender

BallotType

Classes

EntityPercentage

dict() -> new empty dictionary

Module Contents

class election_day.types.EntityPercentage[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)

counted: bool[source]
votes: int[source]
percentage: float[source]
type election_day.types.DomainOfInfluence = Literal['federation', 'canton', 'region', 'district', 'municipality', 'none'][source]
type election_day.types.Status = Literal['unknown', 'interim', 'final'][source]
type election_day.types.Gender = Literal['male', 'female', 'undetermined'][source]
type election_day.types.BallotType = Literal['proposal', 'counter-proposal', 'tie-breaker'][source]