Skip to content

Commit 95de37c

Browse files
authored
Merge pull request #579 from numpy/numpy-2.3.0
2 parents 83c2f49 + ad3de65 commit 95de37c

35 files changed

+1081
-822
lines changed

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
55

66
[project]
77
name = "numtype"
8-
version = "2.2.6.0.dev0"
8+
version = "2.3.0.0.dev0"
99
description = "Experimental Typing Stubs for NumPy"
1010
readme = "README.md"
1111
authors = [
@@ -37,7 +37,7 @@ requires-python = ">=3.11"
3737
dependencies = []
3838

3939
[project.optional-dependencies]
40-
numpy = ["numpy>=2.2.6,<2.3"]
40+
numpy = ["numpy>=2.3.0,<2.4"]
4141

4242
[project.urls]
4343
Homepage = "https://numpy.org/"
@@ -48,11 +48,11 @@ dependencies = []
4848

4949
[dependency-groups]
5050
numpy = ["numtype[numpy]"]
51-
lint = ["ruff>=0.11.12"]
51+
lint = ["ruff>=0.11.13"]
5252
pytest = [
5353
{include-group = "numpy"},
54-
"pytest>=8.3.5",
55-
"typing_extensions>=4.13.2",
54+
"pytest>=8.4.0",
55+
"typing_extensions>=4.14.0",
5656
]
5757
list_and_test = [
5858
{include-group = "lint"},

src/numpy-stubs/__init__.pyi

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -519,12 +519,12 @@ __all__ = [ # noqa: RUF022
519519
"bitwise_and", "bitwise_count", "bitwise_invert", "bitwise_left_shift", "bitwise_not", "bitwise_or",
520520
"bitwise_right_shift", "bitwise_xor", "block", "bool", "bool_", "broadcast", "busday_count", "busday_offset",
521521
"busdaycalendar", "byte", "bytes_", "can_cast", "cbrt", "cdouble", "ceil", "character", "choose", "clip",
522-
"clongdouble", "complex128", "complex192", "complex256", "complex64", "complexfloating", "compress", "concat",
522+
"clongdouble", "complex64", "complex128", "complex192", "complex256", "complexfloating", "compress", "concat",
523523
"concatenate", "conj", "conjugate", "convolve", "copysign", "copyto", "correlate", "cos", "cosh", "count_nonzero",
524524
"cross", "csingle", "cumprod", "cumsum", "cumulative_prod", "cumulative_sum", "datetime64", "datetime_as_string",
525525
"datetime_data", "deg2rad", "degrees", "diagonal", "divide", "divmod", "dot", "double", "dtype", "e", "einsum",
526526
"einsum_path", "empty", "empty_like", "equal", "errstate", "euler_gamma", "exp", "exp2", "expm1", "fabs", "finfo",
527-
"flatiter", "flatnonzero", "flexible", "float128", "float16", "float32", "float64", "float96", "float_power",
527+
"flatiter", "flatnonzero", "flexible", "float16", "float32", "float64", "float96", "float128", "float_power",
528528
"floating", "floor", "floor_divide", "fmax", "fmin", "fmod", "format_float_positional", "format_float_scientific",
529529
"frexp", "from_dlpack", "frombuffer", "fromfile", "fromfunction", "fromiter", "frompyfunc", "fromstring", "full",
530530
"full_like", "gcd", "generic", "geomspace", "get_printoptions", "getbufsize", "geterr", "geterrcall", "greater",
@@ -1046,7 +1046,7 @@ __NUMPY_SETUP__: Final = False
10461046
__numpy_submodules__: Final[set[_SubModule]] = ...
10471047
__former_attrs__: Final[_FormerAttrsDict] = ...
10481048
__future_scalars__: Final[set[_FutureScalar]] = ...
1049-
__array_api_version__: Final = "2023.12"
1049+
__array_api_version__: Final = "2024.12"
10501050
test: Final[PytestTester] = ...
10511051

10521052
###
@@ -3527,8 +3527,6 @@ class bool_(generic[_BoolItemT_co], Generic[_BoolItemT_co]):
35273527
def __bool__(self, /) -> _BoolItemT_co: ...
35283528
@override
35293529
def __int__(self, /) -> L[0, 1]: ...
3530-
@deprecated("It will be an error for 'np.bool' scalars to be interpreted as an index in NumPy 2.3.0")
3531-
def __index__(self, /) -> L[0, 1]: ...
35323530

35333531
#
35343532
@overload
@@ -4735,13 +4733,6 @@ class complexfloating(inexact[complex]):
47354733
@override
47364734
def __abs__(self, /) -> floating: ...
47374735

4738-
#
4739-
@deprecated(
4740-
"The Python built-in `round` is deprecated for complex scalars, "
4741-
"and will raise a `TypeError` in a future release"
4742-
)
4743-
def __round__(self, /, ndigits: CanIndex | None = None) -> Self: ...
4744-
47454736
class complex64(complexfloating):
47464737
@overload
47474738
def __init__(self, real: _ConvertibleToComplex | None = 0, /) -> None: ...

0 commit comments

Comments
 (0)