|
5 | 5 | import threading |
6 | 6 | from datetime import datetime |
7 | 7 | from pathlib import Path |
8 | | -from typing import Dict, List, NamedTuple, Optional |
| 8 | +from typing import NamedTuple |
9 | 9 | from xml.etree import ElementTree as ET |
10 | 10 |
|
11 | 11 | import xmltodict |
|
22 | 22 | class Lamella(NamedTuple): |
23 | 23 | name: str |
24 | 24 | number: int |
25 | | - angle: Optional[float] = None |
| 25 | + angle: float | None = None |
26 | 26 |
|
27 | 27 |
|
28 | 28 | class MillingProgress(NamedTuple): |
@@ -131,10 +131,10 @@ class FIBContext(Context): |
131 | 131 | def __init__(self, acquisition_software: str, basepath: Path, token: str): |
132 | 132 | super().__init__("FIB", acquisition_software, token) |
133 | 133 | 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] = {} |
138 | 138 | self._electron_snapshots_submitted: set[str] = set() |
139 | 139 |
|
140 | 140 | def post_transfer( |
|
0 commit comments