From fd058be395756888ff16ccc0d0683d1e3a6477b5 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 3 Jul 2025 13:58:15 -0500 Subject: [PATCH 1/3] Type uniform_interval_splitting --- pytools/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pytools/__init__.py b/pytools/__init__.py index 09e1eacd..3e0d1819 100644 --- a/pytools/__init__.py +++ b/pytools/__init__.py @@ -1148,7 +1148,11 @@ def div_ceil(nr: int, dr: int): return -(-nr // dr) -def uniform_interval_splitting(n, granularity, max_intervals): +def uniform_interval_splitting( + n: int, + granularity: int, + max_intervals: int + ) -> tuple[int, int]: """ Return *(interval_size, num_intervals)* such that:: num_intervals * interval_size >= n From 27d0bdc4ff55634df6fc7b5e77dc8df3f93b8334 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 3 Jul 2025 13:58:50 -0500 Subject: [PATCH 2/3] Update baseline --- .basedpyright/baseline.json | 200 ------------------------------------ 1 file changed, 200 deletions(-) diff --git a/.basedpyright/baseline.json b/.basedpyright/baseline.json index 34548a29..5ccd32ec 100644 --- a/.basedpyright/baseline.json +++ b/.basedpyright/baseline.json @@ -3315,206 +3315,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownParameterType", - "range": { - "startColumn": 4, - "endColumn": 12, - "lineCount": 1 - } - }, - { - "code": "reportUnknownParameterType", - "range": { - "startColumn": 13, - "endColumn": 15, - "lineCount": 1 - } - }, - { - "code": "reportMissingParameterType", - "range": { - "startColumn": 13, - "endColumn": 15, - "lineCount": 1 - } - }, - { - "code": "reportUnknownParameterType", - "range": { - "startColumn": 17, - "endColumn": 19, - "lineCount": 1 - } - }, - { - "code": "reportMissingParameterType", - "range": { - "startColumn": 17, - "endColumn": 19, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 11, - "endColumn": 23, - "lineCount": 1 - } - }, - { - "code": "reportUnknownParameterType", - "range": { - "startColumn": 4, - "endColumn": 30, - "lineCount": 1 - } - }, - { - "code": "reportUnknownParameterType", - "range": { - "startColumn": 31, - "endColumn": 32, - "lineCount": 1 - } - }, - { - "code": "reportMissingParameterType", - "range": { - "startColumn": 31, - "endColumn": 32, - "lineCount": 1 - } - }, - { - "code": "reportUnknownParameterType", - "range": { - "startColumn": 34, - "endColumn": 45, - "lineCount": 1 - } - }, - { - "code": "reportMissingParameterType", - "range": { - "startColumn": 34, - "endColumn": 45, - "lineCount": 1 - } - }, - { - "code": "reportUnknownParameterType", - "range": { - "startColumn": 47, - "endColumn": 60, - "lineCount": 1 - } - }, - { - "code": "reportMissingParameterType", - "range": { - "startColumn": 47, - "endColumn": 60, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 4, - "endColumn": 10, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 22, - "endColumn": 23, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 25, - "endColumn": 36, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 15, - "endColumn": 34, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 4, - "endColumn": 23, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 35, - "endColumn": 41, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 43, - "endColumn": 56, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 4, - "endColumn": 17, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 4, - "endColumn": 17, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 29, - "endColumn": 30, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 32, - "endColumn": 45, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 11, - "endColumn": 39, - "lineCount": 1 - } - }, { "code": "reportUnknownParameterType", "range": { From db6b9bffe71bfba2618b00c5032b8a2ca5214226 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 3 Jul 2025 13:58:59 -0500 Subject: [PATCH 3/3] Bump version to 2025.2.1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b8dc2945..87f03eaa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "pytools" -version = "2025.2" +version = "2025.2.1" description = "A collection of tools for Python" readme = "README.rst" license = "MIT"