File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 55 TYPE_CHECKING ,
66 Any ,
77 Iterable ,
8+ Iterator ,
89 List ,
910 Sequence ,
1011 Tuple ,
2223 field_validator ,
2324 model_validator ,
2425)
25- from typing_extensions import Annotated
2626
2727from useq ._base_model import FrozenModel , UseqModel
2828from useq ._grid import RandomPoints , RelativeMultiPointPlan , Shape
3131
3232if TYPE_CHECKING :
3333 from pydantic_core import core_schema
34+ from typing_extensions import Annotated
3435
3536 Index = Union [int , List [int ], slice ]
3637 IndexExpression = Union [Tuple [Index , ...], Index ]
@@ -261,7 +262,7 @@ def rotation_matrix(self) -> np.ndarray:
261262 rads = np .radians (self .rotation )
262263 return np .array ([[np .cos (rads ), np .sin (rads )], [- np .sin (rads ), np .cos (rads )]])
263264
264- def __iter__ (self ) -> Iterable [Position ]: # type: ignore
265+ def __iter__ (self ) -> Iterator [Position ]: # type: ignore
265266 """Iterate over the selected positions."""
266267 yield from self .image_positions
267268
You can’t perform that action at this time.
0 commit comments