Skip to content

Commit 32e4eae

Browse files
authored
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 <[email protected]>
1 parent d2fd8fe commit 32e4eae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rclpy/rclpy/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ def list_parameters(
986986
result = ListParametersResult()
987987

988988
separator_less_than_depth: Callable[[str], bool] = \
989-
lambda str: str.count(PARAMETER_SEPARATOR_STRING) < depth
989+
lambda s: s.count(PARAMETER_SEPARATOR_STRING) < depth
990990

991991
recursive: bool = \
992992
(len(prefixes) == 0) and (depth == ListParameters.Request.DEPTH_RECURSIVE)

0 commit comments

Comments
 (0)