Skip to content

Commit 9d02198

Browse files
style: format code with Black and isort
This commit fixes the style issues introduced in 3d54992 according to the output from Black and isort. Details: None
1 parent 3d54992 commit 9d02198

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

parchmint/device.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -865,11 +865,15 @@ def get_valve_type(value: str) -> ValveType:
865865
device_ref.map_valve(
866866
device_ref.get_component(componentid),
867867
device_ref.get_connection(connectionid),
868-
get_valve_type(valve_type)
869-
if valve_type is not None
870-
else ValveType.NORMALLY_OPEN,
868+
(
869+
get_valve_type(valve_type)
870+
if valve_type is not None
871+
else ValveType.NORMALLY_OPEN
872+
),
871873
)
872874
if "controlportid" in valve_object:
873-
device_ref.set_valve_control_port(componentid, valve_object["controlportid"])
875+
device_ref.set_valve_control_port(
876+
componentid, valve_object["controlportid"]
877+
)
874878

875-
return device_ref
879+
return device_ref

0 commit comments

Comments
 (0)