diff --git a/pixi.lock b/pixi.lock index 1973928d..a2da01d1 100644 --- a/pixi.lock +++ b/pixi.lock @@ -2071,7 +2071,7 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/attrs-25.4.0-pyhcf101f3_1.conda - conda: https://prefix.dev/conda-forge/noarch/babel-2.18.0-pyhcf101f3_0.conda - conda: https://prefix.dev/conda-forge/noarch/backports.zstd-1.3.0-py314h680f03e_0.conda - - conda: https://prefix.dev/conda-forge/noarch/basedpyright-1.39.0-pyhcf101f3_0.conda + - conda: https://prefix.dev/conda-forge/noarch/basedpyright-1.39.3-pyhcf101f3_0.conda - conda: https://prefix.dev/conda-forge/noarch/black-26.1.0-pyh866005b_0.conda - conda: https://prefix.dev/conda-forge/noarch/blacken-docs-1.20.0-pyhd8ed1ab_0.conda - conda: https://prefix.dev/conda-forge/linux-64/brotli-python-1.2.0-py314h3de4e8d_1.conda @@ -2199,7 +2199,7 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/attrs-25.4.0-pyhcf101f3_1.conda - conda: https://prefix.dev/conda-forge/noarch/babel-2.18.0-pyhcf101f3_0.conda - conda: https://prefix.dev/conda-forge/noarch/backports.zstd-1.3.0-py314h680f03e_0.conda - - conda: https://prefix.dev/conda-forge/noarch/basedpyright-1.39.0-pyhcf101f3_0.conda + - conda: https://prefix.dev/conda-forge/noarch/basedpyright-1.39.3-pyhcf101f3_0.conda - conda: https://prefix.dev/conda-forge/noarch/black-26.1.0-pyh866005b_0.conda - conda: https://prefix.dev/conda-forge/noarch/blacken-docs-1.20.0-pyhd8ed1ab_0.conda - conda: https://prefix.dev/conda-forge/osx-64/brotli-python-1.2.0-py314h3262eb8_1.conda @@ -2324,7 +2324,7 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/attrs-25.4.0-pyhcf101f3_1.conda - conda: https://prefix.dev/conda-forge/noarch/babel-2.18.0-pyhcf101f3_0.conda - conda: https://prefix.dev/conda-forge/noarch/backports.zstd-1.3.0-py314h680f03e_0.conda - - conda: https://prefix.dev/conda-forge/noarch/basedpyright-1.39.0-pyhcf101f3_0.conda + - conda: https://prefix.dev/conda-forge/noarch/basedpyright-1.39.3-pyhcf101f3_0.conda - conda: https://prefix.dev/conda-forge/noarch/black-26.1.0-pyh866005b_0.conda - conda: https://prefix.dev/conda-forge/noarch/blacken-docs-1.20.0-pyhd8ed1ab_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/brotli-python-1.2.0-py314h3daef5d_1.conda @@ -2448,7 +2448,7 @@ environments: - conda: https://prefix.dev/conda-forge/noarch/attrs-25.4.0-pyhcf101f3_1.conda - conda: https://prefix.dev/conda-forge/noarch/babel-2.18.0-pyhcf101f3_0.conda - conda: https://prefix.dev/conda-forge/noarch/backports.zstd-1.3.0-py314h680f03e_0.conda - - conda: https://prefix.dev/conda-forge/noarch/basedpyright-1.39.0-pyhcf101f3_0.conda + - conda: https://prefix.dev/conda-forge/noarch/basedpyright-1.39.3-pyhcf101f3_0.conda - conda: https://prefix.dev/conda-forge/noarch/black-26.1.0-pyh866005b_0.conda - conda: https://prefix.dev/conda-forge/noarch/blacken-docs-1.20.0-pyhd8ed1ab_0.conda - conda: https://prefix.dev/conda-forge/win-64/brotli-python-1.2.0-py314he701e3d_1.conda @@ -5766,6 +5766,17 @@ packages: - pkg:pypi/basedpyright?source=hash-mapping size: 8750447 timestamp: 1775050905169 +- conda: https://prefix.dev/conda-forge/noarch/basedpyright-1.39.3-pyhcf101f3_0.conda + sha256: 9fa182e331bb4a1165ac8e0bacbdf22da424444bc5271a42b4d97145e2643aec + md5: 27fcb623039bbca4982feb60ca67a48e + depends: + - python >=3.10 + - nodejs >=20 + - nodejs-wheel >=20.13.1 + - python + license: MIT AND Apache-2.0 + size: 8797387 + timestamp: 1776731328353 - conda: https://prefix.dev/conda-forge/noarch/beautifulsoup4-4.14.3-pyha770c72_0.conda sha256: bf1e71c3c0a5b024e44ff928225a0874fc3c3356ec1a0b6fe719108e6d1288f6 md5: 5267bef8efea4127aacd1f4e1f149b6e diff --git a/src/array_api_extra/_lib/_at.py b/src/array_api_extra/_lib/_at.py index ba93cd5a..28919f6a 100644 --- a/src/array_api_extra/_lib/_at.py +++ b/src/array_api_extra/_lib/_at.py @@ -381,7 +381,7 @@ def add( # Note for this and all other methods based on _iop: # operator.iadd and operator.add subtly differ in behaviour, as # only iadd will trigger exceptions when y has an incompatible dtype. - return self._op(_AtOp.ADD, operator.iadd, operator.add, y, copy=copy, xp=xp) + return self._op(_AtOp.ADD, operator.iadd, operator.add, y, copy=copy, xp=xp) # pyright: ignore[reportUnknownArgumentType] def subtract( self, @@ -392,7 +392,12 @@ def subtract( ) -> Array: # numpydoc ignore=PR01,RT01 """Apply ``x[idx] -= y`` and return the updated array.""" return self._op( - _AtOp.SUBTRACT, operator.isub, operator.sub, y, copy=copy, xp=xp + _AtOp.SUBTRACT, + operator.isub, # pyright: ignore[reportUnknownArgumentType] + operator.sub, + y, + copy=copy, + xp=xp, ) def multiply( @@ -404,7 +409,12 @@ def multiply( ) -> Array: # numpydoc ignore=PR01,RT01 """Apply ``x[idx] *= y`` and return the updated array.""" return self._op( - _AtOp.MULTIPLY, operator.imul, operator.mul, y, copy=copy, xp=xp + _AtOp.MULTIPLY, + operator.imul, # pyright: ignore[reportUnknownArgumentType] + operator.mul, + y, + copy=copy, + xp=xp, ) def divide( @@ -416,7 +426,12 @@ def divide( ) -> Array: # numpydoc ignore=PR01,RT01 """Apply ``x[idx] /= y`` and return the updated array.""" return self._op( - _AtOp.DIVIDE, operator.itruediv, operator.truediv, y, copy=copy, xp=xp + _AtOp.DIVIDE, + operator.itruediv, # pyright: ignore[reportUnknownArgumentType] + operator.truediv, # pyright: ignore[reportUnknownArgumentType] + y, + copy=copy, + xp=xp, ) def power( @@ -427,7 +442,7 @@ def power( xp: ModuleType | None = None, ) -> Array: # numpydoc ignore=PR01,RT01 """Apply ``x[idx] **= y`` and return the updated array.""" - return self._op(_AtOp.POWER, operator.ipow, operator.pow, y, copy=copy, xp=xp) + return self._op(_AtOp.POWER, operator.ipow, operator.pow, y, copy=copy, xp=xp) # pyright: ignore[reportUnknownArgumentType] def min( self,