Skip to content

👽️ NumPy 2.3.0 #579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Jun 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
750d86e
📌 upgrade `numpy` to `2.3.0`
jorenham Jun 7, 2025
b5e1590
👽️ add `sorted` kwarg to `unique`
jorenham Jun 7, 2025
7696bc8
👽️ remove `poly1d.__{r}div__` methods
jorenham Jun 7, 2025
83b3340
👽️ set `axis` to `-1` by default in `take_along_axis`
jorenham Jun 7, 2025
7ddea3c
👽️ remove `bool.__index__` and `complexfloating.__round__` methods (e…
jorenham Jun 7, 2025
af49bb1
👽️ remove `set_module` implicit re-export in `_core._exceptions`
jorenham Jun 7, 2025
838269f
👽️ remove constant re-exports in `_pyinstaller.hook_numpy`
jorenham Jun 7, 2025
83e0128
👽️ update attribute annotations of `lib._iotools.NameValidator`
jorenham Jun 8, 2025
94ebabd
👽️ remove `__[{r,i}]div__` and `to_string` methods in `lib.user_array…
jorenham Jun 8, 2025
8a52de2
👽️ annotate `lib.mixins.NDArrayOperatorsMixin.um`
jorenham Jun 8, 2025
4d07b5d
👽️ update `lib` exports
jorenham Jun 8, 2025
6f48dc8
👽️ remove `numpy.compat`
jorenham Jun 8, 2025
6b375d0
👽️ add `linalg.lapack_lite.LapackError`
jorenham Jun 8, 2025
e62359d
👽️ remove `__[i]div__` and `tostring` methods in `ma.MaskedArray`
jorenham Jun 8, 2025
77d17ff
👽️ remove `ma.timer_comparison` module
jorenham Jun 8, 2025
306d927
👽️ remove `polynomial._polybase.ABCPolyBase.__rdiv__` method
jorenham Jun 8, 2025
b414e63
👽️ numpy 2.3 changes in `testing._private`
jorenham Jun 8, 2025
b3cfddf
👽️ numpy 2.3 changes in `testing.utils`
jorenham Jun 8, 2025
83aa3b2
🏷️ stub `lib._format_impl` private module
jorenham Jun 8, 2025
86f9414
👽️ add `strings.slice`
jorenham Jun 8, 2025
f48a4e8
👽️ add `containsderivedtypes` to `f2py.auxfuncs`
jorenham Jun 8, 2025
3b8ccda
👽️ remove `run_command` in `f2py.diagnose`
jorenham Jun 8, 2025
3eabbd4
✨ system-dependent extended precision scalar types
jorenham Jun 8, 2025
a82ae2d
👽️ remove unused p311 allowlist entry
jorenham Jun 8, 2025
fc6fb74
👽️ update `__array_api_version__`
jorenham Jun 8, 2025
ad3de65
⏪ revert the system-dependent extended-precision changes
jorenham Jun 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "hatchling.build"

[project]
name = "numtype"
version = "2.2.6.0.dev0"
version = "2.3.0.0.dev0"
description = "Experimental Typing Stubs for NumPy"
readme = "README.md"
authors = [
Expand Down Expand Up @@ -37,7 +37,7 @@ requires-python = ">=3.11"
dependencies = []

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

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

[dependency-groups]
numpy = ["numtype[numpy]"]
lint = ["ruff>=0.11.12"]
lint = ["ruff>=0.11.13"]
pytest = [
{include-group = "numpy"},
"pytest>=8.3.5",
"typing_extensions>=4.13.2",
"pytest>=8.4.0",
"typing_extensions>=4.14.0",
]
list_and_test = [
{include-group = "lint"},
Expand Down
15 changes: 3 additions & 12 deletions src/numpy-stubs/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -519,12 +519,12 @@ __all__ = [ # noqa: RUF022
"bitwise_and", "bitwise_count", "bitwise_invert", "bitwise_left_shift", "bitwise_not", "bitwise_or",
"bitwise_right_shift", "bitwise_xor", "block", "bool", "bool_", "broadcast", "busday_count", "busday_offset",
"busdaycalendar", "byte", "bytes_", "can_cast", "cbrt", "cdouble", "ceil", "character", "choose", "clip",
"clongdouble", "complex128", "complex192", "complex256", "complex64", "complexfloating", "compress", "concat",
"clongdouble", "complex64", "complex128", "complex192", "complex256", "complexfloating", "compress", "concat",
"concatenate", "conj", "conjugate", "convolve", "copysign", "copyto", "correlate", "cos", "cosh", "count_nonzero",
"cross", "csingle", "cumprod", "cumsum", "cumulative_prod", "cumulative_sum", "datetime64", "datetime_as_string",
"datetime_data", "deg2rad", "degrees", "diagonal", "divide", "divmod", "dot", "double", "dtype", "e", "einsum",
"einsum_path", "empty", "empty_like", "equal", "errstate", "euler_gamma", "exp", "exp2", "expm1", "fabs", "finfo",
"flatiter", "flatnonzero", "flexible", "float128", "float16", "float32", "float64", "float96", "float_power",
"flatiter", "flatnonzero", "flexible", "float16", "float32", "float64", "float96", "float128", "float_power",
"floating", "floor", "floor_divide", "fmax", "fmin", "fmod", "format_float_positional", "format_float_scientific",
"frexp", "from_dlpack", "frombuffer", "fromfile", "fromfunction", "fromiter", "frompyfunc", "fromstring", "full",
"full_like", "gcd", "generic", "geomspace", "get_printoptions", "getbufsize", "geterr", "geterrcall", "greater",
Expand Down Expand Up @@ -1046,7 +1046,7 @@ __NUMPY_SETUP__: Final = False
__numpy_submodules__: Final[set[_SubModule]] = ...
__former_attrs__: Final[_FormerAttrsDict] = ...
__future_scalars__: Final[set[_FutureScalar]] = ...
__array_api_version__: Final = "2023.12"
__array_api_version__: Final = "2024.12"
test: Final[PytestTester] = ...

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

#
@overload
Expand Down Expand Up @@ -4735,13 +4733,6 @@ class complexfloating(inexact[complex]):
@override
def __abs__(self, /) -> floating: ...

#
@deprecated(
"The Python built-in `round` is deprecated for complex scalars, "
"and will raise a `TypeError` in a future release"
)
def __round__(self, /, ndigits: CanIndex | None = None) -> Self: ...

class complex64(complexfloating):
@overload
def __init__(self, real: _ConvertibleToComplex | None = 0, /) -> None: ...
Expand Down
Loading