Skip to content

Commit 80c4136

Browse files
committed
Updated type hints
1 parent c9294f6 commit 80c4136

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • src/murfey/client/contexts

src/murfey/client/contexts/fib.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import threading
66
from datetime import datetime
77
from pathlib import Path
8-
from typing import Dict, List, NamedTuple, Optional
8+
from typing import NamedTuple
99
from xml.etree import ElementTree as ET
1010

1111
import xmltodict
@@ -22,7 +22,7 @@
2222
class Lamella(NamedTuple):
2323
name: str
2424
number: int
25-
angle: Optional[float] = None
25+
angle: float | None = None
2626

2727

2828
class MillingProgress(NamedTuple):
@@ -131,10 +131,10 @@ class FIBContext(Context):
131131
def __init__(self, acquisition_software: str, basepath: Path, token: str):
132132
super().__init__("FIB", acquisition_software, token)
133133
self._basepath = basepath
134-
self._milling: Dict[int, List[MillingProgress]] = {}
135-
self._lamellae: Dict[int, Lamella] = {}
136-
self._electron_snapshots: Dict[str, Path] = {}
137-
self._electron_snapshot_metadata: Dict[str, ElectronSnapshotMetadata] = {}
134+
self._milling: dict[int, list[MillingProgress]] = {}
135+
self._lamellae: dict[int, Lamella] = {}
136+
self._electron_snapshots: dict[str, Path] = {}
137+
self._electron_snapshot_metadata: dict[str, ElectronSnapshotMetadata] = {}
138138
self._electron_snapshots_submitted: set[str] = set()
139139

140140
def post_transfer(

0 commit comments

Comments
 (0)