Skip to content

Commit e065997

Browse files
Fix noqas for docstrings
1 parent efa5204 commit e065997

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/scanspec/specs.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ class Product(Spec[Axis]):
153153
def axes(self) -> list[Axis]: # noqa: D102
154154
return self.outer.axes() + self.inner.axes()
155155

156-
def calculate(
156+
def calculate( # noqa: D102
157157
self, bounds: bool = True, nested: bool = False
158-
) -> list[Frames[Axis]]: # noqa: D102
158+
) -> list[Frames[Axis]]:
159159
frames_outer = self.outer.calculate(bounds=False, nested=nested)
160160
frames_inner = self.inner.calculate(bounds, nested=True)
161161
return frames_outer + frames_inner
@@ -194,9 +194,9 @@ class Repeat(Spec[Axis]):
194194
def axes(self) -> list[Axis]: # noqa: D102
195195
return []
196196

197-
def calculate(
197+
def calculate( # noqa: D102
198198
self, bounds: bool = True, nested: bool = False
199-
) -> list[Frames[Axis]]: # noqa: D102
199+
) -> list[Frames[Axis]]:
200200
return [Frames({}, gap=np.full(self.num, self.gap))]
201201

202202

@@ -233,9 +233,9 @@ class Zip(Spec[Axis]):
233233
def axes(self) -> list[Axis]: # noqa: D102
234234
return self.left.axes() + self.right.axes()
235235

236-
def calculate(
236+
def calculate( # noqa: D102
237237
self, bounds: bool = True, nested: bool = False
238-
) -> list[Frames[Axis]]: # noqa: D102
238+
) -> list[Frames[Axis]]:
239239
frames_left = self.left.calculate(bounds, nested)
240240
frames_right = self.right.calculate(bounds, nested)
241241
assert len(frames_left) >= len(
@@ -303,9 +303,9 @@ class Mask(Spec[Axis]):
303303
def axes(self) -> list[Axis]: # noqa: D102
304304
return self.spec.axes()
305305

306-
def calculate(
306+
def calculate( # noqa: D102
307307
self, bounds: bool = True, nested: bool = False
308-
) -> list[Frames[Axis]]: # noqa: D102
308+
) -> list[Frames[Axis]]:
309309
frames = self.spec.calculate(bounds, nested)
310310
for axis_set in self.region.axis_sets():
311311
# Find the start and end index of any dimensions containing these axes
@@ -363,9 +363,9 @@ class Snake(Spec[Axis]):
363363
def axes(self) -> list[Axis]: # noqa: D102
364364
return self.spec.axes()
365365

366-
def calculate(
366+
def calculate( # noqa: D102
367367
self, bounds: bool = True, nested: bool = False
368-
) -> list[Frames[Axis]]: # noqa: D102
368+
) -> list[Frames[Axis]]:
369369
return [
370370
SnakedFrames.from_frames(segment)
371371
for segment in self.spec.calculate(bounds, nested)
@@ -408,9 +408,9 @@ def axes(self) -> list[Axis]: # noqa: D102
408408
assert set(left_axes) == set(right_axes), f"axes {left_axes} != {right_axes}"
409409
return left_axes
410410

411-
def calculate(
411+
def calculate( # noqa: D102
412412
self, bounds: bool = True, nested: bool = False
413-
) -> list[Frames[Axis]]: # noqa: D102
413+
) -> list[Frames[Axis]]:
414414
dim_left = squash_frames(
415415
self.left.calculate(bounds, nested), nested and self.check_path_changes
416416
)
@@ -445,9 +445,9 @@ class Squash(Spec[Axis]):
445445
def axes(self) -> list[Axis]: # noqa: D102
446446
return self.spec.axes()
447447

448-
def calculate(
448+
def calculate( # noqa: D102
449449
self, bounds: bool = True, nested: bool = False
450-
) -> list[Frames[Axis]]: # noqa: D102
450+
) -> list[Frames[Axis]]:
451451
dims = self.spec.calculate(bounds, nested)
452452
dim = squash_frames(dims, nested and self.check_path_changes)
453453
return [dim]
@@ -513,9 +513,9 @@ def _line_from_indexes(
513513
first = self.start - step / 2
514514
return {self.axis: indexes * step + first}
515515

516-
def calculate(
516+
def calculate( # noqa: D102
517517
self, bounds: bool = True, nested: bool = False
518-
) -> list[Frames[Axis]]: # noqa: D102
518+
) -> list[Frames[Axis]]:
519519
return _dimensions_from_indexes(
520520
self._line_from_indexes, self.axes(), self.num, bounds
521521
)
@@ -594,9 +594,9 @@ def _repeats_from_indexes(
594594
) -> dict[Axis, npt.NDArray[np.float64]]:
595595
return {self.axis: np.full(len(indexes), self.value)}
596596

597-
def calculate(
597+
def calculate( # noqa: D102
598598
self, bounds: bool = True, nested: bool = False
599-
) -> list[Frames[Axis]]: # noqa: D102
599+
) -> list[Frames[Axis]]:
600600
return _dimensions_from_indexes(
601601
self._repeats_from_indexes, self.axes(), self.num, bounds
602602
)
@@ -655,9 +655,9 @@ def _spiral_from_indexes(
655655
self.x_axis: self.x_start + x_scale * phi * np.sin(phi + self.rotate),
656656
}
657657

658-
def calculate(
658+
def calculate( # noqa: D102
659659
self, bounds: bool = True, nested: bool = False
660-
) -> list[Frames[Axis]]: # noqa: D102
660+
) -> list[Frames[Axis]]:
661661
return _dimensions_from_indexes(
662662
self._spiral_from_indexes, self.axes(), self.num, bounds
663663
)

0 commit comments

Comments
 (0)