From a3d5a5d05283a023b8b540abd9a4eee7bd7b0329 Mon Sep 17 00:00:00 2001 From: Michael Carlstrom <36806982+InvincibleRMC@users.noreply.github.com> Date: Fri, 8 Mar 2024 05:05:59 -0800 Subject: [PATCH] Add types (#1231) Signed-off-by: Michael Carlstrom --- rclpy/rclpy/topic_or_service_is_hidden.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rclpy/rclpy/topic_or_service_is_hidden.py b/rclpy/rclpy/topic_or_service_is_hidden.py index 3486532a0..876f9f8f1 100644 --- a/rclpy/rclpy/topic_or_service_is_hidden.py +++ b/rclpy/rclpy/topic_or_service_is_hidden.py @@ -15,7 +15,7 @@ HIDDEN_TOPIC_PREFIX = '_' -def topic_or_service_is_hidden(name): +def topic_or_service_is_hidden(name: str) -> bool: """ Return True if a given topic or service name is hidden, otherwise False.