Skip to content

Commit cfff0a7

Browse files
committed
fix mypy error
1 parent 951c0bc commit cfff0a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lightning/fabric/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def _get_num_processes(accelerator: str, devices: str) -> int:
205205
else:
206206
parsed_devices = CPUAccelerator.parse_devices(devices)
207207
else:
208-
return CPUAccelerator.parse_devices(devices)
208+
parsed_devices = CPUAccelerator.parse_devices(devices)
209209
return (
210210
len(parsed_devices)
211211
if isinstance(parsed_devices, list)

0 commit comments

Comments
 (0)