diff --git a/pixi.lock b/pixi.lock index 9d130e39..1539c0ac 100644 --- a/pixi.lock +++ b/pixi.lock @@ -194,7 +194,7 @@ environments: - conda: https://prefix.dev/conda-forge/linux-64/openssl-3.6.1-h35e630c_1.conda - conda: https://prefix.dev/conda-forge/linux-64/optree-0.19.0-py314h9891dd4_0.conda - conda: https://prefix.dev/conda-forge/linux-64/psutil-7.2.2-py314h0f05182_0.conda - - conda: https://prefix.dev/conda-forge/linux-64/pyrefly-0.63.1-h2b88eb6_0.conda + - conda: https://prefix.dev/conda-forge/linux-64/pyrefly-1.0.0-h2b88eb6_0.conda - conda: https://prefix.dev/conda-forge/linux-64/python-3.14.3-h32b2ec7_101_cp314.conda - conda: https://prefix.dev/conda-forge/linux-64/python-librt-0.8.1-py314h0f05182_0.conda - conda: https://prefix.dev/conda-forge/linux-64/pytorch-2.10.0-cpu_mkl_py314_h6018c46_103.conda @@ -494,7 +494,7 @@ environments: - conda: https://prefix.dev/conda-forge/osx-64/openssl-3.6.1-hb6871ef_1.conda - conda: https://prefix.dev/conda-forge/osx-64/optree-0.19.0-py314h0963f2d_0.conda - conda: https://prefix.dev/conda-forge/osx-64/psutil-7.2.2-py314hd330473_0.conda - - conda: https://prefix.dev/conda-forge/osx-64/pyrefly-0.63.1-he97e7a4_0.conda + - conda: https://prefix.dev/conda-forge/osx-64/pyrefly-1.0.0-he97e7a4_0.conda - conda: https://prefix.dev/conda-forge/osx-64/python-3.14.3-h4f44bb5_101_cp314.conda - conda: https://prefix.dev/conda-forge/osx-64/python-librt-0.8.1-py314h0b69929_0.conda - conda: https://prefix.dev/conda-forge/osx-64/pytorch-2.10.0-cpu_mkl_py314_h7495620_103.conda @@ -679,7 +679,7 @@ environments: - conda: https://prefix.dev/conda-forge/osx-arm64/openssl-3.6.1-hd24854e_1.conda - conda: https://prefix.dev/conda-forge/osx-arm64/optree-0.19.0-py314h6cfcd04_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/psutil-7.2.2-py314ha14b1ff_0.conda - - conda: https://prefix.dev/conda-forge/osx-arm64/pyrefly-0.63.1-h4dd0d4f_0.conda + - conda: https://prefix.dev/conda-forge/osx-arm64/pyrefly-1.0.0-h4dd0d4f_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/python-3.14.3-h4c637c5_101_cp314.conda - conda: https://prefix.dev/conda-forge/osx-arm64/python-librt-0.8.1-py314ha14b1ff_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/pytorch-2.10.0-cpu_generic_py314_he36690f_3.conda @@ -842,7 +842,7 @@ environments: - conda: https://prefix.dev/conda-forge/win-64/openssl-3.6.1-hf411b9b_1.conda - conda: https://prefix.dev/conda-forge/win-64/optree-0.19.0-py314h909e829_0.conda - conda: https://prefix.dev/conda-forge/win-64/psutil-7.2.2-py314hc5dbbe4_0.conda - - conda: https://prefix.dev/conda-forge/win-64/pyrefly-0.63.1-hfe91638_0.conda + - conda: https://prefix.dev/conda-forge/win-64/pyrefly-1.0.0-hfe91638_0.conda - conda: https://prefix.dev/conda-forge/win-64/python-3.14.3-h4b44e0e_101_cp314.conda - conda: https://prefix.dev/conda-forge/win-64/python-librt-0.8.1-py314hc5dbbe4_0.conda - conda: https://prefix.dev/conda-forge/win-64/pytorch-2.10.0-cpu_mkl_py314_hf6ce55f_102.conda @@ -966,7 +966,7 @@ environments: - conda: https://prefix.dev/conda-forge/linux-64/openssl-3.6.1-h35e630c_1.conda - conda: https://prefix.dev/conda-forge/linux-64/optree-0.19.0-py314h9891dd4_0.conda - conda: https://prefix.dev/conda-forge/linux-64/psutil-7.2.2-py314h0f05182_0.conda - - conda: https://prefix.dev/conda-forge/linux-64/pyrefly-0.63.1-h2b88eb6_0.conda + - conda: https://prefix.dev/conda-forge/linux-64/pyrefly-1.0.0-h2b88eb6_0.conda - conda: https://prefix.dev/conda-forge/linux-64/python-3.14.3-h32b2ec7_101_cp314.conda - conda: https://prefix.dev/conda-forge/linux-64/python-librt-0.8.1-py314h0f05182_0.conda - conda: https://prefix.dev/conda-forge/linux-64/pytorch-2.10.0-cuda129_mkl_py314_h624cae8_303.conda @@ -1275,7 +1275,7 @@ environments: - conda: https://prefix.dev/conda-forge/osx-64/openssl-3.6.1-hb6871ef_1.conda - conda: https://prefix.dev/conda-forge/osx-64/optree-0.19.0-py314h0963f2d_0.conda - conda: https://prefix.dev/conda-forge/osx-64/psutil-7.2.2-py314hd330473_0.conda - - conda: https://prefix.dev/conda-forge/osx-64/pyrefly-0.63.1-he97e7a4_0.conda + - conda: https://prefix.dev/conda-forge/osx-64/pyrefly-1.0.0-he97e7a4_0.conda - conda: https://prefix.dev/conda-forge/osx-64/python-3.14.3-h4f44bb5_101_cp314.conda - conda: https://prefix.dev/conda-forge/osx-64/python-librt-0.8.1-py314h0b69929_0.conda - conda: https://prefix.dev/conda-forge/osx-64/pytorch-2.10.0-cpu_mkl_py314_h7495620_103.conda @@ -1460,7 +1460,7 @@ environments: - conda: https://prefix.dev/conda-forge/osx-arm64/openssl-3.6.1-hd24854e_1.conda - conda: https://prefix.dev/conda-forge/osx-arm64/optree-0.19.0-py314h6cfcd04_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/psutil-7.2.2-py314ha14b1ff_0.conda - - conda: https://prefix.dev/conda-forge/osx-arm64/pyrefly-0.63.1-h4dd0d4f_0.conda + - conda: https://prefix.dev/conda-forge/osx-arm64/pyrefly-1.0.0-h4dd0d4f_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/python-3.14.3-h4c637c5_101_cp314.conda - conda: https://prefix.dev/conda-forge/osx-arm64/python-librt-0.8.1-py314ha14b1ff_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/pytorch-2.10.0-cpu_generic_py314_he36690f_3.conda @@ -1643,7 +1643,7 @@ environments: - conda: https://prefix.dev/conda-forge/win-64/openssl-3.6.1-hf411b9b_1.conda - conda: https://prefix.dev/conda-forge/win-64/optree-0.19.0-py314h909e829_0.conda - conda: https://prefix.dev/conda-forge/win-64/psutil-7.2.2-py314hc5dbbe4_0.conda - - conda: https://prefix.dev/conda-forge/win-64/pyrefly-0.63.1-hfe91638_0.conda + - conda: https://prefix.dev/conda-forge/win-64/pyrefly-1.0.0-hfe91638_0.conda - conda: https://prefix.dev/conda-forge/win-64/python-3.14.3-h4b44e0e_101_cp314.conda - conda: https://prefix.dev/conda-forge/win-64/python-librt-0.8.1-py314hc5dbbe4_0.conda - conda: https://prefix.dev/conda-forge/win-64/pytorch-2.10.0-cuda128_mkl_py314_h5a71295_302.conda @@ -2098,7 +2098,7 @@ environments: - conda: https://prefix.dev/conda-forge/linux-64/numpy-2.4.2-py314h2b28147_1.conda - conda: https://prefix.dev/conda-forge/linux-64/openssl-3.6.1-h35e630c_1.conda - conda: https://prefix.dev/conda-forge/linux-64/psutil-7.2.2-py314h0f05182_0.conda - - conda: https://prefix.dev/conda-forge/linux-64/pyrefly-0.63.1-h2b88eb6_0.conda + - conda: https://prefix.dev/conda-forge/linux-64/pyrefly-1.0.0-h2b88eb6_0.conda - conda: https://prefix.dev/conda-forge/linux-64/python-3.14.3-h32b2ec7_101_cp314.conda - conda: https://prefix.dev/conda-forge/linux-64/python-librt-0.8.1-py314h0f05182_0.conda - conda: https://prefix.dev/conda-forge/linux-64/pyyaml-6.0.3-py314h67df5f8_1.conda @@ -2296,7 +2296,7 @@ environments: - conda: https://prefix.dev/conda-forge/osx-64/numpy-2.4.2-py314hfc4c462_1.conda - conda: https://prefix.dev/conda-forge/osx-64/openssl-3.6.1-hb6871ef_1.conda - conda: https://prefix.dev/conda-forge/osx-64/psutil-7.2.2-py314hd330473_0.conda - - conda: https://prefix.dev/conda-forge/osx-64/pyrefly-0.63.1-he97e7a4_0.conda + - conda: https://prefix.dev/conda-forge/osx-64/pyrefly-1.0.0-he97e7a4_0.conda - conda: https://prefix.dev/conda-forge/osx-64/python-3.14.3-h4f44bb5_101_cp314.conda - conda: https://prefix.dev/conda-forge/osx-64/python-librt-0.8.1-py314h0b69929_0.conda - conda: https://prefix.dev/conda-forge/osx-64/pyyaml-6.0.3-py314h10d0514_1.conda @@ -2421,7 +2421,7 @@ environments: - conda: https://prefix.dev/conda-forge/osx-arm64/numpy-2.4.2-py314hae46ccb_1.conda - conda: https://prefix.dev/conda-forge/osx-arm64/openssl-3.6.1-hd24854e_1.conda - conda: https://prefix.dev/conda-forge/osx-arm64/psutil-7.2.2-py314ha14b1ff_0.conda - - conda: https://prefix.dev/conda-forge/osx-arm64/pyrefly-0.63.1-h4dd0d4f_0.conda + - conda: https://prefix.dev/conda-forge/osx-arm64/pyrefly-1.0.0-h4dd0d4f_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/python-3.14.3-h4c637c5_101_cp314.conda - conda: https://prefix.dev/conda-forge/osx-arm64/python-librt-0.8.1-py314ha14b1ff_0.conda - conda: https://prefix.dev/conda-forge/osx-arm64/pyyaml-6.0.3-py314h6e9b3f0_1.conda @@ -2538,7 +2538,7 @@ environments: - conda: https://prefix.dev/conda-forge/win-64/numpy-2.4.2-py314h06c3c77_1.conda - conda: https://prefix.dev/conda-forge/win-64/openssl-3.6.1-hf411b9b_1.conda - conda: https://prefix.dev/conda-forge/win-64/psutil-7.2.2-py314hc5dbbe4_0.conda - - conda: https://prefix.dev/conda-forge/win-64/pyrefly-0.63.1-hfe91638_0.conda + - conda: https://prefix.dev/conda-forge/win-64/pyrefly-1.0.0-hfe91638_0.conda - conda: https://prefix.dev/conda-forge/win-64/python-3.14.3-h4b44e0e_101_cp314.conda - conda: https://prefix.dev/conda-forge/win-64/python-librt-0.8.1-py314hc5dbbe4_0.conda - conda: https://prefix.dev/conda-forge/win-64/pyyaml-6.0.3-py314h2359020_1.conda @@ -7636,9 +7636,9 @@ packages: - pkg:pypi/psutil?source=hash-mapping size: 231303 timestamp: 1769678156552 -- conda: https://prefix.dev/conda-forge/linux-64/pyrefly-0.63.1-h2b88eb6_0.conda - sha256: 48a9eb96d6b31dd87d015c17dabf6284f95b3421582adf57854de7f9fcdd2dbf - md5: 3f4336a7341a7e10b7b75d6199f0c439 +- conda: https://prefix.dev/conda-forge/linux-64/pyrefly-1.0.0-h2b88eb6_0.conda + sha256: 225d491c94a6962b92377154b33b424cb0cc30aa2fe0b433c6c110d05da7283d + md5: 132a1bc9d31e17d6e12d7188ca7ddfb8 depends: - __glibc >=2.17,<3.0.a0 - libgcc >=14 @@ -7647,8 +7647,8 @@ packages: license: MIT license_family: MIT run_exports: {} - size: 10917123 - timestamp: 1777456494879 + size: 10962615 + timestamp: 1778629320799 - conda: https://prefix.dev/conda-forge/linux-64/python-3.11.14-hd63d673_3_cpython.conda build_number: 3 sha256: 41b29c2d62f7028bb7bb05eef3ff55f81e3c1cb40e76ba95a890a058fbc2a896 @@ -11434,18 +11434,18 @@ packages: - pkg:pypi/psutil?source=hash-mapping size: 242816 timestamp: 1769678225798 -- conda: https://prefix.dev/conda-forge/osx-64/pyrefly-0.63.1-he97e7a4_0.conda - sha256: db848ce2b5a738af76d585a52b7ee2e597d99910d527e125d6c669e783eab203 - md5: 97b08ba35755ff64817aaff75172b55c +- conda: https://prefix.dev/conda-forge/osx-64/pyrefly-1.0.0-he97e7a4_0.conda + sha256: dffca5399aecee7b87771114e4696a2a51829a2dc38b0a97d8f8f997c32c9d16 + md5: 2e4c1f8e1ae2dbeae1ff1c4b5bd30447 depends: - __osx >=11.0 constrains: - - __osx >=10.13 + - __osx >=11.0 license: MIT license_family: MIT run_exports: {} - size: 10838487 - timestamp: 1777456551351 + size: 10907035 + timestamp: 1778629381545 - conda: https://prefix.dev/conda-forge/osx-64/python-3.11.14-h74c2667_3_cpython.conda build_number: 3 sha256: 327d6c5eb61657d4b76e1024da9c790d3e7aacee84487403e9eef1b730982e63 @@ -13016,9 +13016,9 @@ packages: - pkg:pypi/psutil?source=hash-mapping size: 245502 timestamp: 1769678303655 -- conda: https://prefix.dev/conda-forge/osx-arm64/pyrefly-0.63.1-h4dd0d4f_0.conda - sha256: e0933d68ce1029cdcb7e230d25842ee6fd3727dbdb99b7345015ef30a83c4b2d - md5: fe446e9df8d6c1aa074d88b4c4bf5055 +- conda: https://prefix.dev/conda-forge/osx-arm64/pyrefly-1.0.0-h4dd0d4f_0.conda + sha256: 34dd964342267b5d93674eefe37055b8915943de60d43b4e36a08b9642319f46 + md5: b0b2e5d34dba70dfad3955a59e611b46 depends: - __osx >=11.0 constrains: @@ -13026,8 +13026,8 @@ packages: license: MIT license_family: MIT run_exports: {} - size: 10255363 - timestamp: 1777456625606 + size: 10330096 + timestamp: 1778629356792 - conda: https://prefix.dev/conda-forge/osx-arm64/python-3.11.14-h18782d2_3_cpython.conda build_number: 3 sha256: f862d544a455bedfa5d77305f0a42c8e3392956e364f8f92d6ca1c844fb3fbd1 @@ -14618,9 +14618,9 @@ packages: - pkg:pypi/psutil?source=hash-mapping size: 249950 timestamp: 1769678167309 -- conda: https://prefix.dev/conda-forge/win-64/pyrefly-0.63.1-hfe91638_0.conda - sha256: 8eea36b083267d1face3dbd40d232f108ecc1b6269a32bdab939c4130987e40d - md5: 931bc20bf880d6416dd0552926f1a3e7 +- conda: https://prefix.dev/conda-forge/win-64/pyrefly-1.0.0-hfe91638_0.conda + sha256: 5d3cfd0fea530480f197badbc00403d7c1592814540180c23acdef5f900e3284 + md5: 8952e9b92b28b7c6bdc953d8711957bd depends: - vc >=14.3,<15 - vc14_runtime >=14.44.35208 @@ -14628,8 +14628,8 @@ packages: license: MIT license_family: MIT run_exports: {} - size: 11228604 - timestamp: 1777456532953 + size: 11351129 + timestamp: 1778629351360 - conda: https://prefix.dev/conda-forge/win-64/python-3.11.14-h0159041_3_cpython.conda build_number: 3 sha256: 5676dadd9d4fba1bce51bd7e5cf8fcf76f85b88b7baa15bd10ca00557e67f10e diff --git a/pixi.toml b/pixi.toml index 5de70959..be7ddba7 100644 --- a/pixi.toml +++ b/pixi.toml @@ -71,7 +71,7 @@ actionlint = ">=1.7.12,<2" blacken-docs = ">=1.20.0,<2" pytest = ">=9.0.3,<10" validate-pyproject = ">=0.25,<0.26" -pyrefly = ">=0.63.1,<0.64" +pyrefly = ">=1.0.0,<1.1" zizmor = ">=1.24.1,<1.25" # NOTE: don't add cupy, jax, pytorch, or sparse here, # as they slow down mypy and are not portable across target OSs diff --git a/tests/test_funcs.py b/tests/test_funcs.py index 53e4aba8..c229ff16 100644 --- a/tests/test_funcs.py +++ b/tests/test_funcs.py @@ -140,7 +140,7 @@ def test_dtype_propagation(self, xp: ModuleType, library: Backend): cond, (x, y), self.f1, - lambda x, y: mxp.astype(x - y, xp.int64), # pyright: ignore[reportArgumentType] + lambda x, y: mxp.astype(x - y, xp.int64), # pyright: ignore[reportArgumentType] # pyrefly: ignore[bad-argument-type] ) assert actual.dtype == xp.int64 diff --git a/tests/test_lazy.py b/tests/test_lazy.py index becd1dca..86500c75 100644 --- a/tests/test_lazy.py +++ b/tests/test_lazy.py @@ -452,6 +452,6 @@ def f(x: Array) -> Array: with pytest.raises(ValueError, match="multiple shapes but only one dtype"): _ = lazy_apply(f, x, shape=[(1,), (2,)], dtype=np.int32) # type: ignore[call-overload] # pyright: ignore[reportCallIssue,reportArgumentType] with pytest.raises(ValueError, match="single shape but multiple dtypes"): - _ = lazy_apply(f, x, shape=(1,), dtype=[np.int32, np.int64]) # pyright: ignore[reportCallIssue,reportArgumentType] + _ = lazy_apply(f, x, shape=(1,), dtype=[np.int32, np.int64]) # pyright: ignore[reportCallIssue,reportArgumentType] # pyrefly: ignore[no-matching-overload] with pytest.raises(ValueError, match="2 shapes and 1 dtypes"): _ = lazy_apply(f, x, shape=[(1,), (2,)], dtype=[np.int32]) # type: ignore[arg-type] # pyright: ignore[reportCallIssue,reportArgumentType]