diff --git a/pyproject.toml b/pyproject.toml index 224bb8a5..0db9a007 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,7 @@ requires = ["hatchling"] build-backend = "hatchling.build" + [project] name = "numtype" version = "2.2.2.0.dev0" @@ -29,7 +30,6 @@ requires-python = ">=3.10" packages = [{include = "src/numpy-stubs"}] dependencies = [] - [project.optional-dependencies] numpy = ["numpy>=2.2.2,<2.3"] @@ -47,8 +47,7 @@ dev = [ "libcst>=1.6.0", "ruff>=0.9.5", "mypy[faster-cache]>=1.15.0", - # "basedmypy[faster-cache]>=2.9.1", - "basedpyright>=1.26.0", + "basedpyright>=1.27.0", "pytest>=8.3.4", ] @@ -69,6 +68,7 @@ packages = ["src/numpy-stubs"] "uv.lock", ] + [tool.mypy] python_version = "3.10" mypy_path = "src" @@ -82,8 +82,6 @@ strict = true strict_bytes = true strict_concatenate = true local_partial_types = true -# disable_bytearray_promotion = true -# disable_memoryview_promotion = true enable_error_code = ["ignore-without-code", "truthy-bool"] disable_error_code = ["explicit-override"] enable_incomplete_feature = ["PreciseTupleTypes"] diff --git a/uv.lock b/uv.lock index 032df624..5cbb470a 100644 --- a/uv.lock +++ b/uv.lock @@ -3,14 +3,14 @@ requires-python = ">=3.10" [[package]] name = "basedpyright" -version = "1.26.0" +version = "1.27.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "nodejs-wheel-binaries" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/18/c2/5685d040d4f2598788d42bfd2db5f808e9aa2eaee77fcae3c2fbe4ea0e7c/basedpyright-1.26.0.tar.gz", hash = "sha256:5e01f6eb9290a09ef39672106cf1a02924fdc8970e521838bc502ccf0676f32f", size = 24932771 } +sdist = { url = "https://files.pythonhosted.org/packages/24/d6/13b8c68628ec477a0845e0cb1b653576f4b27cd56aa5b34e773d27b191f1/basedpyright-1.27.0.tar.gz", hash = "sha256:7394c6f8eb08bc8c45caeb00f75bc815b518d1345e25436ae3046b93ba1ddbb0", size = 21496620 } wheels = [ - { url = "https://files.pythonhosted.org/packages/8e/72/65308f45bb73efc93075426cac5f37eea937ae364aa675785521cb3512c7/basedpyright-1.26.0-py3-none-any.whl", hash = "sha256:5a6a17f2c389ec313dd2c3644f40e8221bc90252164802e626055341c0a37381", size = 11504579 }, + { url = "https://files.pythonhosted.org/packages/23/da/b90aa61886be7a8eb553ec8816e25e1ec06d25178092be5d5404eac74fdc/basedpyright-1.27.0-py3-none-any.whl", hash = "sha256:4c71641ab808ca5a30fa1df26c9842b870b08847696a8a5f9072a6a4e914542d", size = 11523095 }, ] [[package]] @@ -237,7 +237,7 @@ requires-dist = [{ name = "numpy", marker = "extra == 'numpy'", specifier = ">=2 [package.metadata.requires-dev] dev = [ - { name = "basedpyright", specifier = ">=1.26.0" }, + { name = "basedpyright", specifier = ">=1.27.0" }, { name = "libcst", specifier = ">=1.6.0" }, { name = "mypy", extras = ["faster-cache"], specifier = ">=1.15.0" }, { name = "numtype", extras = ["numpy"] },