We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
uv run ruff check --fix
1 parent 5d728f3 commit 40e368dCopy full SHA for 40e368d
104 files changed
‎src/_numtype/__init__.pyi‎
@@ -5,8 +5,8 @@
5
import decimal
6
import fractions
7
from collections.abc import Sequence
8
-from typing import Any, TypeAlias, type_check_only
9
-from typing_extensions import Never, Protocol, TypeAliasType, TypeVar
+from typing import Any, Never, TypeAlias, type_check_only
+from typing_extensions import Protocol, TypeAliasType, TypeVar
10
11
import numpy as np
12
from numpy._typing import _NestedSequence
‎src/_numtype/_just.pyi‎
@@ -2,8 +2,8 @@
2
# pyright: reportIncompatibleMethodOverride=false
3
4
import datetime as dt
-from typing import Protocol, SupportsFloat, SupportsIndex, TypeAlias, final, type_check_only
-from typing_extensions import Self, TypeVar, override
+from typing import Protocol, Self, SupportsFloat, SupportsIndex, TypeAlias, final, type_check_only
+from typing_extensions import TypeVar, override
__all__ = ["Just", "JustBytes", "JustComplex", "JustFloat", "JustInt", "JustObject", "JustStr"]
‎src/_numtype/_shape.pyi‎
@@ -1,4 +1,4 @@
1
-from typing_extensions import TypeAliasType, Unpack
+from typing_extensions import TypeAliasType
__all__ = [
"Shape",
@@ -20,7 +20,7 @@ Shape2 = TypeAliasType("Shape2", tuple[int, int])
20
Shape3 = TypeAliasType("Shape3", tuple[int, int, int])
21
Shape4 = TypeAliasType("Shape4", tuple[int, int, int, int])
22
23
-Shape1_ = TypeAliasType("Shape1_", tuple[int, Unpack[tuple[int, ...]]])
24
-Shape2_ = TypeAliasType("Shape2_", tuple[int, int, Unpack[tuple[int, ...]]])
25
-Shape3_ = TypeAliasType("Shape3_", tuple[int, int, int, Unpack[tuple[int, ...]]])
26
-Shape4_ = TypeAliasType("Shape4_", tuple[int, int, int, int, Unpack[tuple[int, ...]]])
+Shape1_ = TypeAliasType("Shape1_", tuple[int, *tuple[int, ...]])
+Shape2_ = TypeAliasType("Shape2_", tuple[int, int, *tuple[int, ...]])
+Shape3_ = TypeAliasType("Shape3_", tuple[int, int, int, *tuple[int, ...]])
+Shape4_ = TypeAliasType("Shape4_", tuple[int, int, int, int, *tuple[int, ...]])
‎src/numpy-stubs/@test/runtime/legacy/recfunctions.py‎
@@ -1,7 +1,6 @@
"""These tests are based on the doctests from `numpy/lib/recfunctions.py`."""
-from typing import TYPE_CHECKING, Any
-from typing_extensions import assert_type
+from typing import TYPE_CHECKING, Any, assert_type
import numpy.typing as npt
‎src/numpy-stubs/@test/static/accept/arithmetic.pyi‎
@@ -1,6 +1,5 @@
-from typing import Any
+from typing import Any, assert_type
‎src/numpy-stubs/@test/static/accept/array_api_info.pyi‎
@@ -1,5 +1,4 @@
-from typing import Literal
+from typing import Literal, assert_type
‎src/numpy-stubs/@test/static/accept/array_constructors.pyi‎
@@ -1,8 +1,8 @@
import sys
from collections import deque
from pathlib import Path
-from typing_extensions import TypeVar, assert_type
+from typing_extensions import TypeVar
import _numtype as _nt
‎src/numpy-stubs/@test/static/accept/arraypad.pyi‎
from collections.abc import Mapping
-from typing import Any, SupportsIndex
+from typing import Any, SupportsIndex, assert_type
‎src/numpy-stubs/@test/static/accept/arrayprint.pyi‎
@@ -1,6 +1,6 @@
import contextlib
from collections.abc import Callable
+from typing import assert_type
‎src/numpy-stubs/@test/static/accept/arraysetops.pyi‎
0 commit comments