Skip to content

Commit 6edc5ea

Browse files
committed
🩹 io.matlab: import CapsuleType from typing_extensions
1 parent d73faa9 commit 6edc5ea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎scipy-stubs/io/matlab/_mio5_utils.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# defined in scipy/io/matlab/_mio5_utils.pyx
22

33
from collections.abc import Iterable
4-
from types import CapsuleType
54
from typing import Any, ClassVar, Final, Literal, Never, TypeAlias
5+
from typing_extensions import CapsuleType
66

77
import numpy as np
88
import optype.numpy as onp

‎scipy-stubs/io/matlab/_mio_utils.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import datetime as dt
2-
from types import CapsuleType
32
from typing import Any, Final, Never, TypeVar, overload
3+
from typing_extensions import CapsuleType
44

55
import numpy as np
66
import optype.numpy as onp

‎scipy-stubs/io/matlab/_streams.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from types import CapsuleType
21
from typing import Any, ClassVar, Final, Literal, Protocol, type_check_only
2+
from typing_extensions import CapsuleType
33

44
@type_check_only
55
class _FileLike(Protocol):

0 commit comments

Comments
 (0)