Skip to content

Commit 66b9939

Browse files
committed
Fix type hint
1 parent 334826d commit 66b9939

File tree

1 file changed

+2
-2
lines changed
  • bitbots_misc/bitbots_utils/bitbots_utils

1 file changed

+2
-2
lines changed

bitbots_misc/bitbots_utils/bitbots_utils/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
from threading import Thread
3-
from typing import Any
3+
from typing import Any, Callable
44

55
import rclpy
66
import yaml
@@ -219,7 +219,7 @@ def done_waiting():
219219
node.destroy_timer(timer)
220220

221221

222-
async def async_run_thread(func: callable) -> None:
222+
async def async_run_thread(func: Callable[[], Any]) -> None:
223223
"""
224224
Allows the usage of blocking functions in an async context.
225225

0 commit comments

Comments
 (0)