Starting docstring on the same lines as the quotations
This commit is contained in:
parent
be6a6ca6fe
commit
35d47fe3ed
28 changed files with 92 additions and 214 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue