Starting docstring on the same lines as the quotations

This commit is contained in:
Julian Stirling 2025-07-10 01:04:26 +01:00
parent be6a6ca6fe
commit 35d47fe3ed
28 changed files with 92 additions and 214 deletions

View file

@ -1,5 +1,4 @@
"""
OpenFlexure Microscope system control Thing
"""OpenFlexure Microscope system control Thing
This module defines a Thing that can shut down or restart the host computer.
"""
@ -16,15 +15,11 @@ class CommandOutput(BaseModel):
class SystemControlThing(lt.Thing):
"""
Attempt to shutdown the device
"""
"""Attempt to shutdown the device"""
@lt.thing_action
def shutdown(self) -> CommandOutput:
"""
Attempt to shutdown the device
"""
"""Attempt to shutdown the device"""
p = subprocess.Popen(
["sudo", "shutdown", "-h", "now"],
stderr=subprocess.PIPE,