Skip to content

Commit 21113e3

Browse files
authored
Try to fix mypy error based on type change
1 parent f7db5bf commit 21113e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nibabel/spatialimages.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ def update_header(self) -> None:
566566

567567
def _affine2header(self) -> None:
568568
"""Unconditionally set affine into the header"""
569+
assert self._affine is not None
569570
RZS = self._affine[:3, :3]
570571
vox = np.sqrt(np.sum(RZS * RZS, axis=0))
571572
hdr = self._header

0 commit comments

Comments
 (0)