Skip to content

Commit

Permalink
Update typing hint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexobaseki committed Sep 3, 2024
1 parent aee6111 commit 0ed7718
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openstates/importers/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def get_location(self, location_data: _JsonDict) -> EventLocation:
)
return obj

def get_chamber_name_from_event_name(self, name: str) -> typing.Union[str, None]:
def get_chamber_name_from_event_name(
self, name: typing.Union[str, tuple]
) -> typing.Union[str, None]:
if isinstance(name, tuple):
possible_chamber_name = name[0].split()[0].lower()
else:
Expand Down

0 comments on commit 0ed7718

Please sign in to comment.