We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dad15a commit fb8198fCopy full SHA for fb8198f
1 file changed
pybricks/robotics.pyi
@@ -1,7 +1,7 @@
1
# SPDX-License-Identifier: MIT
2
# Copyright (c) 2020 The Pybricks Authors
3
4
-from typing import Optional, Tuple, overload
+from typing import Optional, Tuple, overload, Union
5
from ._common import Control, Motor
6
7
class DriveBase:
@@ -11,8 +11,8 @@ class DriveBase:
11
self,
12
left_motor: Motor,
13
right_motor: Motor,
14
- wheel_diameter: int,
15
- axle_track: int,
+ wheel_diameter: Union[int, float],
+ axle_track: Union[int, float],
16
): ...
17
def drive(self, drive_speed: int, turn_rate: int) -> None: ...
18
def stop(self) -> None: ...
0 commit comments