Skip to content

Commit

Permalink
fix: Import from typing in Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Sep 8, 2024
1 parent 72a93c2 commit bb978c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nibabel/nifti1.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@
from __future__ import annotations

import json
import sys
import typing as ty
import warnings
from io import BytesIO

import numpy as np
import numpy.linalg as npl
from typing_extensions import Self, TypeVar # PY312

if sys.version_info <= (3, 12):
from typing_extensions import Self, TypeVar # PY312
else:
from typing import Self, TypeVar

from . import analyze # module import
from .arrayproxy import get_obj_dtype
Expand Down

0 comments on commit bb978c1

Please sign in to comment.