Skip to content

Commit

Permalink
Use Optional for compatibility
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Martens <alex@thinglab.org>
  • Loading branch information
abmantis and newAM authored Oct 8, 2023
1 parent c95b19d commit 2ebe02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idasen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ async def move_to_target(self, target: float):
async def do_move():
previous_height = await self.get_height()
will_move_up = target > previous_height
last_move_time: float | None = None
last_move_time: Optional[float] = None
while True:
height = await self.get_height()
difference = target - height
Expand Down

0 comments on commit 2ebe02a

Please sign in to comment.