Skip to content

Commit

Permalink
Fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
callumforrester committed Sep 16, 2024
1 parent 648d069 commit b49ed30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
# ('envvar', 'LD_LIBRARY_PATH').
nitpick_ignore = [
("py:class", "scanspec.core.C"),
("py:class", "scanspec.core.T"),
("py:class", "pydantic.config.ConfigDict"),
]

Expand Down
4 changes: 2 additions & 2 deletions src/scanspec/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def _make_schema(
return {member.__name__: handler(member) for member in members}


def if_instance_do(x: C, cls: type[C], func: Callable[[C], T]):
def if_instance_do(x: C, cls: type[C], func: Callable[[C], T]) -> T:
"""If x is of type cls then return func(x), otherwise return NotImplemented.
Used as a helper when implementing operator overloading.
Expand Down Expand Up @@ -428,7 +428,7 @@ def from_frames(
return cls(frames.midpoints, frames.lower, frames.upper, frames.gap)

def extract(
self, indices: npt.NDArray[np.int32], calculate_gap: bool = True
self, indices: npt.NDArray[np.signedinteger[Any]], calculate_gap: bool = True
) -> Frames[Axis]:
"""Return a new Frames object restricted to the indices provided.
Expand Down

0 comments on commit b49ed30

Please sign in to comment.