From ba4a3e990a8be570e97a070ee1f1b1d232a7e19d Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Tue, 23 Jun 2026 15:01:58 -0400 Subject: [PATCH 1/2] Bump bpr python version to 3.12 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index af402d9a..69d4b68e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -177,7 +177,7 @@ reportPossiblyUnboundVariable = "hint" # https://github.com/microsoft/pyright/issues/746 reportImportCycles = "none" -pythonVersion = "3.10" +pythonVersion = "3.12" pythonPlatform = "All" exclude = [ From 417661e64ea4acf7fa4cca517b7d8f99d4bb8e8e Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Tue, 23 Jun 2026 15:02:37 -0400 Subject: [PATCH 2/2] Update baseline --- .basedpyright/baseline.json | 842 ++++-------------------------------- 1 file changed, 90 insertions(+), 752 deletions(-) diff --git a/.basedpyright/baseline.json b/.basedpyright/baseline.json index b8384a04..dc34e465 100644 --- a/.basedpyright/baseline.json +++ b/.basedpyright/baseline.json @@ -52,6 +52,16 @@ } } ], + "./examples/fourier.py": [ + { + "code": "reportReturnType", + "range": { + "startColumn": 11, + "endColumn": 17, + "lineCount": 1 + } + } + ], "./examples/sym-exp-complexity.py": [ { "code": "reportConstantRedefinition", @@ -9256,26 +9266,18 @@ } }, { - "code": "reportIndexIssue", - "range": { - "startColumn": 20, - "endColumn": 34, - "lineCount": 1 - } - }, - { - "code": "reportIndexIssue", + "code": "reportCallIssue", "range": { "startColumn": 20, - "endColumn": 34, + "endColumn": 74, "lineCount": 1 } }, { - "code": "reportIndexIssue", + "code": "reportArgumentType", "range": { "startColumn": 20, - "endColumn": 34, + "endColumn": 74, "lineCount": 1 } }, @@ -9303,14 +9305,6 @@ "lineCount": 1 } }, - { - "code": "reportCallIssue", - "range": { - "startColumn": 20, - "endColumn": 74, - "lineCount": 1 - } - }, { "code": "reportArgumentType", "range": { @@ -11149,14 +11143,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 22, - "endColumn": 43, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -11237,14 +11223,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 25, - "endColumn": 32, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -11253,46 +11231,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 27, - "endColumn": 66, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 36, - "endColumn": 49, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 36, - "endColumn": 49, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 51, - "endColumn": 63, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 51, - "endColumn": 63, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -11309,14 +11247,6 @@ "lineCount": 4 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 16, - "endColumn": 32, - "lineCount": 1 - } - }, { "code": "reportReturnType", "range": { @@ -11349,14 +11279,6 @@ "lineCount": 5 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 19, - "endColumn": 35, - "lineCount": 1 - } - }, { "code": "reportOperatorIssue", "range": { @@ -11405,6 +11327,22 @@ "lineCount": 1 } }, + { + "code": "reportAny", + "range": { + "startColumn": 23, + "endColumn": 39, + "lineCount": 3 + } + }, + { + "code": "reportCallIssue", + "range": { + "startColumn": 23, + "endColumn": 38, + "lineCount": 1 + } + }, { "code": "reportArgumentType", "range": { @@ -11453,14 +11391,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 12, - "endColumn": 21, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -13649,14 +13579,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 32, - "endColumn": 88, - "lineCount": 1 - } - }, { "code": "reportReturnType", "range": { @@ -13981,22 +13903,6 @@ } ], "./sumpy/test/curve.py": [ - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 19, - "endColumn": 41, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 22, - "endColumn": 55, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -14007,22 +13913,6 @@ } ], "./sumpy/test/geometries.py": [ - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 20, - "endColumn": 60, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 21, - "endColumn": 41, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -14047,46 +13937,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 23, - "endColumn": 32, - "lineCount": 1 - } - }, - { - "code": "reportAny", - "range": { - "startColumn": 4, - "endColumn": 11, - "lineCount": 1 - } - }, - { - "code": "reportAny", - "range": { - "startColumn": 4, - "endColumn": 10, - "lineCount": 1 - } - }, - { - "code": "reportAny", - "range": { - "startColumn": 4, - "endColumn": 11, - "lineCount": 1 - } - }, - { - "code": "reportAny", - "range": { - "startColumn": 28, - "endColumn": 35, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -14166,163 +14016,67 @@ "endColumn": 11, "lineCount": 1 } - }, + } + ], + "./sumpy/test/test_codegen.py": [ { - "code": "reportUnknownMemberType", + "code": "reportArgumentType", "range": { - "startColumn": 14, - "endColumn": 27, + "startColumn": 39, + "endColumn": 49, "lineCount": 1 } }, { - "code": "reportUnknownMemberType", + "code": "reportArgumentType", "range": { - "startColumn": 14, - "endColumn": 39, + "startColumn": 28, + "endColumn": 29, "lineCount": 1 } }, { - "code": "reportUnknownArgumentType", + "code": "reportArgumentType", "range": { - "startColumn": 14, - "endColumn": 41, + "startColumn": 28, + "endColumn": 29, "lineCount": 1 } }, { - "code": "reportAny", + "code": "reportArgumentType", "range": { - "startColumn": 16, + "startColumn": 29, "endColumn": 30, "lineCount": 1 } }, { - "code": "reportAny", + "code": "reportArgumentType", "range": { - "startColumn": 16, - "endColumn": 42, + "startColumn": 28, + "endColumn": 29, "lineCount": 1 } }, { - "code": "reportAny", + "code": "reportArgumentType", "range": { - "startColumn": 16, - "endColumn": 44, + "startColumn": 28, + "endColumn": 29, "lineCount": 1 } }, { - "code": "reportAny", + "code": "reportEmptyAbstractUsage", "range": { - "startColumn": 22, - "endColumn": 37, + "startColumn": 11, + "endColumn": 60, "lineCount": 1 } }, { - "code": "reportAny", - "range": { - "startColumn": 22, - "endColumn": 46, - "lineCount": 1 - } - }, - { - "code": "reportAny", - "range": { - "startColumn": 22, - "endColumn": 48, - "lineCount": 1 - } - }, - { - "code": "reportAny", - "range": { - "startColumn": 16, - "endColumn": 31, - "lineCount": 1 - } - }, - { - "code": "reportAny", - "range": { - "startColumn": 16, - "endColumn": 40, - "lineCount": 1 - } - }, - { - "code": "reportAny", - "range": { - "startColumn": 16, - "endColumn": 42, - "lineCount": 1 - } - } - ], - "./sumpy/test/test_codegen.py": [ - { - "code": "reportArgumentType", - "range": { - "startColumn": 39, - "endColumn": 49, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 28, - "endColumn": 29, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 28, - "endColumn": 29, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 29, - "endColumn": 30, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 28, - "endColumn": 29, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 28, - "endColumn": 29, - "lineCount": 1 - } - }, - { - "code": "reportEmptyAbstractUsage", - "range": { - "startColumn": 11, - "endColumn": 60, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", + "code": "reportArgumentType", "range": { "startColumn": 75, "endColumn": 76, @@ -16501,14 +16255,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 14, - "endColumn": 19, - "lineCount": 1 - } - }, { "code": "reportUnknownParameterType", "range": { @@ -17199,14 +16945,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 64, - "endColumn": 71, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -17215,14 +16953,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 45, - "endColumn": 52, - "lineCount": 1 - } - }, { "code": "reportUnknownParameterType", "range": { @@ -17711,22 +17441,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 60, - "endColumn": 67, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 22, - "endColumn": 29, - "lineCount": 1 - } - }, { "code": "reportMissingParameterType", "range": { @@ -17926,22 +17640,6 @@ "endColumn": 49, "lineCount": 1 } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 60, - "endColumn": 67, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 22, - "endColumn": 29, - "lineCount": 1 - } } ], "./sumpy/test/test_heat_translations.py": [ @@ -18121,14 +17819,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 34, - "endColumn": 37, - "lineCount": 1 - } - }, { "code": "reportUnknownArgumentType", "range": { @@ -18321,14 +18011,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 34, - "endColumn": 37, - "lineCount": 1 - } - }, { "code": "reportUnknownArgumentType", "range": { @@ -18545,14 +18227,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 34, - "endColumn": 37, - "lineCount": 1 - } - }, { "code": "reportUnknownArgumentType", "range": { @@ -18603,32 +18277,8 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 14, - "endColumn": 23, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 14, - "endColumn": 23, - "lineCount": 1 - } - }, { "code": "reportAny", - "range": { - "startColumn": 12, - "endColumn": 20, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", "range": { "startColumn": 30, "endColumn": 61, @@ -18636,7 +18286,7 @@ } }, { - "code": "reportAny", + "code": "reportUnknownArgumentType", "range": { "startColumn": 28, "endColumn": 43, @@ -18644,21 +18294,13 @@ } }, { - "code": "reportAny", + "code": "reportUnknownArgumentType", "range": { "startColumn": 38, "endColumn": 58, "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 32, - "endColumn": 39, - "lineCount": 1 - } - }, { "code": "reportUnknownParameterType", "range": { @@ -18707,22 +18349,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 18, - "endColumn": 64, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 19, - "endColumn": 53, - "lineCount": 2 - } - }, { "code": "reportUnknownArgumentType", "range": { @@ -19171,22 +18797,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 14, - "endColumn": 41, - "lineCount": 15 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 14, - "endColumn": 46, - "lineCount": 15 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -19267,30 +18877,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 35, - "endColumn": 54, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 35, - "endColumn": 54, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 42, - "endColumn": 55, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -19299,22 +18885,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 51, - "endColumn": 54, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 46, - "endColumn": 59, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -19323,22 +18893,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 53, - "endColumn": 56, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 46, - "endColumn": 59, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -19347,35 +18901,11 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 55, - "endColumn": 58, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 50, - "endColumn": 63, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { "startColumn": 8, - "endColumn": 42, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 50, - "endColumn": 53, + "endColumn": 42, "lineCount": 1 } }, @@ -19899,14 +19429,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 18, - "endColumn": 57, - "lineCount": 1 - } - }, { "code": "reportUnknownArgumentType", "range": { @@ -19915,14 +19437,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 19, - "endColumn": 58, - "lineCount": 1 - } - }, { "code": "reportUnknownArgumentType", "range": { @@ -19939,14 +19453,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 19, - "endColumn": 69, - "lineCount": 1 - } - }, { "code": "reportUnknownArgumentType", "range": { @@ -19963,14 +19469,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 19, - "endColumn": 69, - "lineCount": 1 - } - }, { "code": "reportUnknownArgumentType", "range": { @@ -20035,14 +19533,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 16, - "endColumn": 42, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -20059,14 +19549,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 23, - "endColumn": 43, - "lineCount": 1 - } - }, { "code": "reportUnknownArgumentType", "range": { @@ -20147,6 +19629,14 @@ "lineCount": 1 } }, + { + "code": "reportAny", + "range": { + "startColumn": 8, + "endColumn": 11, + "lineCount": 1 + } + }, { "code": "reportAny", "range": { @@ -20156,7 +19646,7 @@ } }, { - "code": "reportUnknownArgumentType", + "code": "reportAny", "range": { "startColumn": 48, "endColumn": 51, @@ -20383,14 +19873,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 44, - "endColumn": 61, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -21323,6 +20805,14 @@ "lineCount": 1 } }, + { + "code": "reportUnknownArgumentType", + "range": { + "startColumn": 34, + "endColumn": 37, + "lineCount": 1 + } + }, { "code": "reportUnknownMemberType", "range": { @@ -21403,6 +20893,14 @@ "lineCount": 1 } }, + { + "code": "reportUnknownArgumentType", + "range": { + "startColumn": 38, + "endColumn": 41, + "lineCount": 1 + } + }, { "code": "reportArgumentType", "range": { @@ -21859,14 +21357,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 22, - "endColumn": 25, - "lineCount": 1 - } - }, { "code": "reportArgumentType", "range": { @@ -21875,14 +21365,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 23, - "endColumn": 38, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -22948,6 +22430,14 @@ "endColumn": 54, "lineCount": 1 } + }, + { + "code": "reportUnknownArgumentType", + "range": { + "startColumn": 33, + "endColumn": 38, + "lineCount": 1 + } } ], "./sumpy/test/test_target_deriv.py": [ @@ -23587,14 +23077,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownParameterType", - "range": { - "startColumn": 4, - "endColumn": 13, - "lineCount": 1 - } - }, { "code": "reportUnknownArgumentType", "range": { @@ -23659,14 +23141,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 11, - "endColumn": 38, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -23683,14 +23157,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 19, - "endColumn": 54, - "lineCount": 1 - } - }, { "code": "reportReturnType", "range": { @@ -24429,14 +23895,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 8, - "endColumn": 50, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -24629,14 +24087,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 8, - "endColumn": 58, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -24861,30 +24311,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 8, - "endColumn": 31, - "lineCount": 9 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 8, - "endColumn": 36, - "lineCount": 9 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 8, - "endColumn": 38, - "lineCount": 9 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -25213,14 +24639,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 50, - "endColumn": 62, - "lineCount": 1 - } - }, { "code": "reportUnknownArgumentType", "range": { @@ -25517,14 +24935,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 28, - "endColumn": 34, - "lineCount": 1 - } - }, { "code": "reportUnannotatedClassAttribute", "range": { @@ -25637,22 +25047,6 @@ "lineCount": 1 } }, - { - "code": "reportAny", - "range": { - "startColumn": 15, - "endColumn": 68, - "lineCount": 1 - } - }, - { - "code": "reportAny", - "range": { - "startColumn": 15, - "endColumn": 80, - "lineCount": 1 - } - }, { "code": "reportUnannotatedClassAttribute", "range": { @@ -27231,22 +26625,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 22, - "endColumn": 44, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 22, - "endColumn": 58, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -27271,14 +26649,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 18, - "endColumn": 29, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -27287,30 +26657,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 38, - "endColumn": 52, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 8, - "endColumn": 15, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 8, - "endColumn": 15, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -27351,14 +26697,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 18, - "endColumn": 29, - "lineCount": 1 - } - }, { "code": "reportMissingImports", "range": {