Skip to content

Commit f92c157

Browse files
authored
fixing pep257 problems introduced by #334 (#384) (#392)
Signed-off-by: Christian Henkel <[email protected]> (cherry picked from commit b504059)
1 parent d8fef69 commit f92c157

File tree

1 file changed

+6
-3
lines changed
  • diagnostic_common_diagnostics/diagnostic_common_diagnostics

1 file changed

+6
-3
lines changed

diagnostic_common_diagnostics/diagnostic_common_diagnostics/hd_monitor.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464

6565

6666
class HDMonitor(Node):
67-
"""Diagnostic node checking the remaining space on the specified hard drive.
67+
"""
68+
Diagnostic node checking the remaining space on the specified hard drive.
6869
6970
Three ROS parameters:
7071
- path: Path on the filesystem to check (string, default: home directory)
@@ -90,7 +91,8 @@ def __init__(self):
9091
self._updater.add(f'{hostname} HD Usage', self.check_disk_usage)
9192

9293
def callback_config(self, params: List[rclpy.Parameter]):
93-
"""Retrieve ROS parameters.
94+
"""
95+
Retrieve ROS parameters.
9496
9597
see the class documentation for declared parameters.
9698
"""
@@ -108,7 +110,8 @@ def callback_config(self, params: List[rclpy.Parameter]):
108110
return SetParametersResult(successful=True)
109111

110112
def check_disk_usage(self, diag: DiagnosticStatus) -> DiagnosticStatus:
111-
"""Compute the disk usage and derive a status from it.
113+
"""
114+
Compute the disk usage and derive a status from it.
112115
113116
Task periodically ran by the diagnostic updater.
114117
"""

0 commit comments

Comments
 (0)