From 32e4eae63cc3450309e7bf1f9dacf3b725a18d88 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Tue, 2 Apr 2024 14:22:09 -0400 Subject: [PATCH] Fix small flake8 error in rclpy. (#1267) Newer versions of flake8 complain that using 'str' as a variable shadows a builtin. Just make it 's'. Signed-off-by: Chris Lalancette --- rclpy/rclpy/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rclpy/rclpy/node.py b/rclpy/rclpy/node.py index 425a468bb..ec5576435 100644 --- a/rclpy/rclpy/node.py +++ b/rclpy/rclpy/node.py @@ -986,7 +986,7 @@ def list_parameters( result = ListParametersResult() separator_less_than_depth: Callable[[str], bool] = \ - lambda str: str.count(PARAMETER_SEPARATOR_STRING) < depth + lambda s: s.count(PARAMETER_SEPARATOR_STRING) < depth recursive: bool = \ (len(prefixes) == 0) and (depth == ListParameters.Request.DEPTH_RECURSIVE)