We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fa51e3 commit 7b50bb6Copy full SHA for 7b50bb6
src/murfey/server/demo_api.py
@@ -142,7 +142,7 @@ def machine_info() -> Optional[MachineConfig]:
142
143
@lru_cache(maxsize=5)
144
@router.get("/instruments/{instrument_name}/machine")
145
-def machine_info_by_name(instrument_name: str) -> MachineConfig | None:
+def machine_info_by_name(instrument_name: str) -> Optional[MachineConfig]:
146
if settings.murfey_machine_configuration:
147
return from_file(Path(settings.murfey_machine_configuration), instrument_name)[
148
instrument_name
0 commit comments