Skip to content

Commit

Permalink
type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
jgibson517 committed Nov 11, 2023
1 parent 90590cb commit 1582048
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/votekit/election_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,12 @@ def to_dict(self, keep: list = []) -> dict:
"""
keys = ["elected", "eliminated", "remaining", "ranking"]
values = [self.winners(), self.eliminated(), self.remaining, self.rankings()]
values: list = [
self.winners(),
self.eliminated(),
self.remaining,
self.rankings(),
]

rv = {}
for key, values in zip(keys, values):
Expand Down

0 comments on commit 1582048

Please sign in to comment.