Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Doug Hoskisson <[email protected]>
  • Loading branch information
Berserker66 and beauxq authored Jul 7, 2024
1 parent e781e0c commit 3455db7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BaseClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,10 +524,10 @@ def get_sendable_spheres(self) -> Iterator[Set[Location]]:
and then a set of all of the unreachable locations.
"""
state = CollectionState(self)
locations = set()
events = set()
locations: Set[Location] = set()
events: Set[Location] = set()
for location in self.get_filled_locations():
if type(location.item.code) == int:
if type(location.item.code) is int:
locations.add(location)
else:
events.add(location)
Expand All @@ -536,7 +536,7 @@ def get_sendable_spheres(self) -> Iterator[Set[Location]]:
sphere: Set[Location] = set()

# cull events out
done_events = {None}
done_events: Set[Union[Location, None]] = {None}
while done_events:
done_events = set()
for event in events:
Expand Down

0 comments on commit 3455db7

Please sign in to comment.