We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 334826d commit 66b9939Copy full SHA for 66b9939
bitbots_misc/bitbots_utils/bitbots_utils/utils.py
@@ -1,6 +1,6 @@
1
import os
2
from threading import Thread
3
-from typing import Any
+from typing import Any, Callable
4
5
import rclpy
6
import yaml
@@ -219,7 +219,7 @@ def done_waiting():
219
node.destroy_timer(timer)
220
221
222
-async def async_run_thread(func: callable) -> None:
+async def async_run_thread(func: Callable[[], Any]) -> None:
223
"""
224
Allows the usage of blocking functions in an async context.
225
0 commit comments