Skip to content

Commit

Permalink
bugfix: type notations or are py3.10 and above
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerlz committed Jan 14, 2025
1 parent 82a2824 commit 74aaaf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions klippy/kinematics/extruder.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ def sync_to_extruder(self, extruder_name):
self.stepper.set_trapq(extruder.get_trapq())
self.motion_queue = extruder_name

def set_rotation_distance(self, rotation_dist: float | int):
def set_rotation_distance(self, rotation_dist):
self.stepper.set_rotation_distance(rotation_dist)

def get_rotation_distance(self) -> float | int:
def get_rotation_distance(self):
_, rotation_dist = self.stepper.get_rotation_distance()
return rotation_dist

Expand Down

0 comments on commit 74aaaf3

Please sign in to comment.