Skip to content

Commit 40e368d

Browse files
committed
🚨 uv run ruff check --fix
1 parent 5d728f3 commit 40e368d

File tree

104 files changed

+235
-227
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+235
-227
lines changed

‎src/_numtype/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import decimal
66
import fractions
77
from collections.abc import Sequence
8-
from typing import Any, TypeAlias, type_check_only
9-
from typing_extensions import Never, Protocol, TypeAliasType, TypeVar
8+
from typing import Any, Never, TypeAlias, type_check_only
9+
from typing_extensions import Protocol, TypeAliasType, TypeVar
1010

1111
import numpy as np
1212
from numpy._typing import _NestedSequence

‎src/_numtype/_just.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# pyright: reportIncompatibleMethodOverride=false
33

44
import datetime as dt
5-
from typing import Protocol, SupportsFloat, SupportsIndex, TypeAlias, final, type_check_only
6-
from typing_extensions import Self, TypeVar, override
5+
from typing import Protocol, Self, SupportsFloat, SupportsIndex, TypeAlias, final, type_check_only
6+
from typing_extensions import TypeVar, override
77

88
__all__ = ["Just", "JustBytes", "JustComplex", "JustFloat", "JustInt", "JustObject", "JustStr"]
99

‎src/_numtype/_shape.pyi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing_extensions import TypeAliasType, Unpack
1+
from typing_extensions import TypeAliasType
22

33
__all__ = [
44
"Shape",
@@ -20,7 +20,7 @@ Shape2 = TypeAliasType("Shape2", tuple[int, int])
2020
Shape3 = TypeAliasType("Shape3", tuple[int, int, int])
2121
Shape4 = TypeAliasType("Shape4", tuple[int, int, int, int])
2222

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, ...]]])
23+
Shape1_ = TypeAliasType("Shape1_", tuple[int, *tuple[int, ...]])
24+
Shape2_ = TypeAliasType("Shape2_", tuple[int, int, *tuple[int, ...]])
25+
Shape3_ = TypeAliasType("Shape3_", tuple[int, int, int, *tuple[int, ...]])
26+
Shape4_ = TypeAliasType("Shape4_", tuple[int, int, int, int, *tuple[int, ...]])

‎src/numpy-stubs/@test/runtime/legacy/recfunctions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""These tests are based on the doctests from `numpy/lib/recfunctions.py`."""
22

3-
from typing import TYPE_CHECKING, Any
4-
from typing_extensions import assert_type
3+
from typing import TYPE_CHECKING, Any, assert_type
54

65
import numpy as np
76
import numpy.typing as npt

‎src/numpy-stubs/@test/static/accept/arithmetic.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import datetime as dt
2-
from typing import Any
3-
from typing_extensions import assert_type
2+
from typing import Any, assert_type
43

54
import numpy as np
65
import numpy.typing as npt

‎src/numpy-stubs/@test/static/accept/array_api_info.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from typing import Literal
2-
from typing_extensions import assert_type
1+
from typing import Literal, assert_type
32

43
import numpy as np
54

‎src/numpy-stubs/@test/static/accept/array_constructors.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import sys
22
from collections import deque
33
from pathlib import Path
4-
from typing import Any
5-
from typing_extensions import TypeVar, assert_type
4+
from typing import Any, assert_type
5+
from typing_extensions import TypeVar
66

77
import _numtype as _nt
88
import numpy as np

‎src/numpy-stubs/@test/static/accept/arraypad.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from collections.abc import Mapping
2-
from typing import Any, SupportsIndex
3-
from typing_extensions import assert_type
2+
from typing import Any, SupportsIndex, assert_type
43

54
import numpy as np
65
import numpy.typing as npt

‎src/numpy-stubs/@test/static/accept/arrayprint.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import contextlib
22
from collections.abc import Callable
3-
from typing_extensions import assert_type
3+
from typing import assert_type
44

55
import numpy as np
66
import numpy.typing as npt

‎src/numpy-stubs/@test/static/accept/arraysetops.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from typing import Any
2-
from typing_extensions import assert_type
1+
from typing import Any, assert_type
32

43
import _numtype as _nt
54
import numpy as np

0 commit comments

Comments
 (0)