Skip to content

Commit

Permalink
MNT: Replace typing.Tuple with tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Oct 18, 2024
1 parent b9b0fe9 commit ca61800
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nibabel/minc1.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from numbers import Integral

import numpy as np
from typing import Tuple

from .externals.netcdf import netcdf_file
from .fileslice import canonical_slicers
Expand Down Expand Up @@ -113,7 +112,7 @@ def get_affine(self):
aff[:nspatial, nspatial] = origin
return aff

def get_units(self) -> Tuple[str, str, str]:
def get_units(self) -> tuple[str, str, str]:
return tuple(d.units.decode('utf-8') for d in self._dims)

def _get_valid_range(self):
Expand Down Expand Up @@ -308,7 +307,7 @@ def data_from_fileobj(self, fileobj):
"""See Header class for an implementation we can't use"""
raise NotImplementedError

def get_xyzt_units(self) -> Tuple[str, str]:
def get_xyzt_units(self) -> tuple[str, str]:
return self._units, 'unknown'


Expand Down

0 comments on commit ca61800

Please sign in to comment.