Skip to content

Commit 05b1057

Browse files
committed
Union type hint still needed for Python 3.9 pytest tests
1 parent d19683d commit 05b1057

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/murfey/util/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import socket
55
from functools import lru_cache
66
from pathlib import Path
7-
from typing import Any, Literal, Mapping, Optional
7+
from typing import Any, Literal, Mapping, Optional, Union
88

99
import yaml
1010
from backports.entry_points_selectable import entry_points
@@ -82,7 +82,7 @@ class MachineConfig(BaseModel):
8282
),
8383
# NOTE: This is a placeholder for a key that will be implemented in the future
8484
)
85-
calibrations: dict[str, dict[str, dict | float]] = Field(
85+
calibrations: dict[str, dict[str, Union[dict, float]]] = Field(
8686
default={},
8787
description=(
8888
"Nested dictionary containing the calibrations for this microscope. "

0 commit comments

Comments
 (0)