Skip to content

Commit 7b50bb6

Browse files
committed
Used Optional[] as type hint for Python 3.9 compatibility
1 parent 0fa51e3 commit 7b50bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/murfey/server/demo_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def machine_info() -> Optional[MachineConfig]:
142142

143143
@lru_cache(maxsize=5)
144144
@router.get("/instruments/{instrument_name}/machine")
145-
def machine_info_by_name(instrument_name: str) -> MachineConfig | None:
145+
def machine_info_by_name(instrument_name: str) -> Optional[MachineConfig]:
146146
if settings.murfey_machine_configuration:
147147
return from_file(Path(settings.murfey_machine_configuration), instrument_name)[
148148
instrument_name

0 commit comments

Comments
 (0)