Skip to content

Commit

Permalink
Fix small flake8 error in rclpy. (#1267)
Browse files Browse the repository at this point in the history
Newer versions of flake8 complain that using 'str' as a
variable shadows a builtin.  Just make it 's'.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
  • Loading branch information
clalancette authored Apr 2, 2024
1 parent d2fd8fe commit 32e4eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclpy/rclpy/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 32e4eae

Please sign in to comment.