diff --git a/.basedpyright/baseline.json b/.basedpyright/baseline.json index 6bbab908..144d9009 100644 --- a/.basedpyright/baseline.json +++ b/.basedpyright/baseline.json @@ -135,14 +135,6 @@ "lineCount": 1 } }, - { - "code": "reportUnannotatedClassAttribute", - "range": { - "startColumn": 4, - "endColumn": 19, - "lineCount": 1 - } - }, { "code": "reportUnusedVariable", "range": { @@ -471,14 +463,6 @@ "lineCount": 1 } }, - { - "code": "reportAssignmentType", - "range": { - "startColumn": 14, - "endColumn": 70, - "lineCount": 1 - } - }, { "code": "reportUnannotatedClassAttribute", "range": { @@ -842,70 +826,6 @@ "endColumn": 82, "lineCount": 1 } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 12, - "endColumn": 17, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 21, - "endColumn": 33, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 20, - "endColumn": 57, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 30, - "endColumn": 56, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 30, - "endColumn": 56, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 47, - "endColumn": 82, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 57, - "endColumn": 81, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 57, - "endColumn": 81, - "lineCount": 1 - } } ], "./meshmode/discretization/connection/chained.py": [ @@ -2309,14 +2229,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 32, - "endColumn": 42, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -2341,14 +2253,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 52, - "endColumn": 81, - "lineCount": 1 - } - }, { "code": "reportUnknownVariableType", "range": { @@ -2751,78 +2655,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 8, - "endColumn": 12, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 15, - "endColumn": 23, - "lineCount": 1 - } - }, - { - "code": "reportAttributeAccessIssue", - "range": { - "startColumn": 19, - "endColumn": 23, - "lineCount": 1 - } - }, - { - "code": "reportCallIssue", - "range": { - "startColumn": 15, - "endColumn": 37, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 15, - "endColumn": 37, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 15, - "endColumn": 53, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 24, - "endColumn": 28, - "lineCount": 1 - } - }, - { - "code": "reportCallIssue", - "range": { - "startColumn": 30, - "endColumn": 52, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 30, - "endColumn": 52, - "lineCount": 1 - } - }, { "code": "reportUninitializedInstanceVariable", "range": { @@ -2831,14 +2663,6 @@ "lineCount": 1 } }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 19, - "endColumn": 44, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -2863,14 +2687,6 @@ "lineCount": 1 } }, - { - "code": "reportMissingTypeArgument", - "range": { - "startColumn": 22, - "endColumn": 40, - "lineCount": 1 - } - }, { "code": "reportUnknownParameterType", "range": { @@ -2895,14 +2711,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 40, - "endColumn": 52, - "lineCount": 1 - } - }, { "code": "reportUnannotatedClassAttribute", "range": { @@ -2983,22 +2791,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 8, - "endColumn": 14, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 17, - "endColumn": 52, - "lineCount": 1 - } - }, { "code": "reportUnknownVariableType", "range": { @@ -3135,22 +2927,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 8, - "endColumn": 14, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 17, - "endColumn": 52, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -3223,22 +2999,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 41, - "endColumn": 53, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 41, - "endColumn": 53, - "lineCount": 1 - } - }, { "code": "reportUnknownParameterType", "range": { @@ -3256,159 +3016,23 @@ } }, { - "code": "reportUnknownMemberType", + "code": "reportArgumentType", "range": { - "startColumn": 41, - "endColumn": 53, + "startColumn": 47, + "endColumn": 71, "lineCount": 1 } }, { - "code": "reportUnknownArgumentType", + "code": "reportArgumentType", "range": { - "startColumn": 41, - "endColumn": 53, + "startColumn": 47, + "endColumn": 71, "lineCount": 1 } }, { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 39, - "endColumn": 44, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 48, - "endColumn": 60, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 8, - "endColumn": 14, - "lineCount": 1 - } - }, - { - "code": "reportMissingTypeArgument", - "range": { - "startColumn": 21, - "endColumn": 39, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 29, - "endColumn": 34, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 48, - "endColumn": 60, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 48, - "endColumn": 60, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 47, - "endColumn": 71, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 47, - "endColumn": 71, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 16, - "endColumn": 28, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 31, - "endColumn": 43, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 42, - "endColumn": 84, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 52, - "endColumn": 83, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 52, - "endColumn": 83, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 38, - "endColumn": 82, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 48, - "endColumn": 81, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 48, - "endColumn": 81, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", + "code": "reportArgumentType", "range": { "startColumn": 38, "endColumn": 78, @@ -3423,38 +3047,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 12, - "endColumn": 25, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 15, - "endColumn": 21, - "lineCount": 1 - } - }, - { - "code": "reportUnknownParameterType", - "range": { - "startColumn": 8, - "endColumn": 31, - "lineCount": 1 - } - }, - { - "code": "reportMissingTypeArgument", - "range": { - "startColumn": 35, - "endColumn": 53, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -3511,14 +3103,6 @@ "lineCount": 1 } }, - { - "code": "reportImplicitOverride", - "range": { - "startColumn": 8, - "endColumn": 16, - "lineCount": 1 - } - }, { "code": "reportUnknownVariableType", "range": { @@ -3544,594 +3128,18 @@ } }, { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 20, - "endColumn": 32, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 20, - "endColumn": 32, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 20, - "endColumn": 32, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 27, - "endColumn": 42, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 16, - "endColumn": 81, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 33, - "endColumn": 61, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 33, - "endColumn": 67, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 62, - "endColumn": 66, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 24, - "endColumn": 49, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 24, - "endColumn": 28, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 24, - "endColumn": 44, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 52, - "endColumn": 56, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 57, - "endColumn": 82, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 57, - "endColumn": 82, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 44, - "endColumn": 48, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 50, - "endColumn": 70, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 45, - "endColumn": 49, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 50, - "endColumn": 69, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 50, - "endColumn": 69, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 49, - "endColumn": 53, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 54, - "endColumn": 80, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 54, - "endColumn": 80, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 32, - "endColumn": 47, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 55, - "endColumn": 59, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 60, - "endColumn": 80, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 60, - "endColumn": 80, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 55, - "endColumn": 57, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 40, - "endColumn": 44, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 46, - "endColumn": 61, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 36, - "endColumn": 40, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 28, - "endColumn": 60, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 24, - "endColumn": 28, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 36, - "endColumn": 56, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 24, - "endColumn": 56, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 33, - "endColumn": 43, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 47, - "endColumn": 66, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 54, - "endColumn": 80, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 53, - "endColumn": 78, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 34, - "endColumn": 59, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 17, - "endColumn": 29, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 29, - "endColumn": 34, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 48, - "endColumn": 60, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 48, - "endColumn": 60, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 31, - "endColumn": 57, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 31, - "endColumn": 57, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 20, - "endColumn": 38, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 20, - "endColumn": 35, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 37, - "endColumn": 57, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 36, - "endColumn": 40, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 20, - "endColumn": 35, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 43, - "endColumn": 47, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 48, - "endColumn": 63, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 20, - "endColumn": 40, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 48, - "endColumn": 52, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 53, - "endColumn": 73, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 24, - "endColumn": 27, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 32, - "endColumn": 57, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 48, - "endColumn": 50, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 40, - "endColumn": 44, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 46, - "endColumn": 61, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 41, - "endColumn": 47, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 40, - "endColumn": 43, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 48, - "endColumn": 58, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 24, - "endColumn": 33, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 41, - "endColumn": 45, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 46, - "endColumn": 64, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 32, - "endColumn": 57, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 48, - "endColumn": 50, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 36, - "endColumn": 40, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 42, - "endColumn": 57, - "lineCount": 1 - } - }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 40, - "endColumn": 44, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 46, - "endColumn": 66, - "lineCount": 1 - } - }, - { - "code": "reportOptionalMemberAccess", + "code": "reportUnknownMemberType", "range": { - "startColumn": 48, - "endColumn": 58, + "startColumn": 20, + "endColumn": 32, "lineCount": 1 } }, { - "code": "reportArgumentType", + "code": "reportUnknownMemberType", "range": { - "startColumn": 44, - "endColumn": 48, + "startColumn": 20, + "endColumn": 32, "lineCount": 1 } }, @@ -4139,55 +3147,55 @@ "code": "reportUnknownMemberType", "range": { "startColumn": 20, - "endColumn": 52, + "endColumn": 32, "lineCount": 1 } }, { - "code": "reportUnknownArgumentType", + "code": "reportUnknownVariableType", "range": { - "startColumn": 34, - "endColumn": 59, + "startColumn": 20, + "endColumn": 38, "lineCount": 1 } }, { - "code": "reportOptionalMemberAccess", + "code": "reportUnknownVariableType", "range": { - "startColumn": 35, - "endColumn": 37, + "startColumn": 24, + "endColumn": 27, "lineCount": 1 } }, { - "code": "reportUnknownMemberType", + "code": "reportUnknownArgumentType", "range": { - "startColumn": 12, - "endColumn": 31, + "startColumn": 40, + "endColumn": 43, "lineCount": 1 } }, { - "code": "reportReturnType", + "code": "reportUnknownVariableType", "range": { - "startColumn": 15, - "endColumn": 55, + "startColumn": 24, + "endColumn": 33, "lineCount": 1 } }, { "code": "reportUnknownArgumentType", "range": { - "startColumn": 35, - "endColumn": 54, + "startColumn": 46, + "endColumn": 64, "lineCount": 1 } }, { - "code": "reportUnknownArgumentType", + "code": "reportReturnType", "range": { - "startColumn": 41, - "endColumn": 53, + "startColumn": 15, + "endColumn": 55, "lineCount": 1 } }, @@ -4239,46 +3247,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 21, - "endColumn": 26, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 40, - "endColumn": 52, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 40, - "endColumn": 52, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 23, - "endColumn": 49, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 23, - "endColumn": 49, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -4303,22 +3271,6 @@ "lineCount": 10 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 41, - "endColumn": 67, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 39, - "endColumn": 63, - "lineCount": 1 - } - }, { "code": "reportUnknownArgumentType", "range": { @@ -4802,178 +3754,26 @@ } }, { - "code": "reportOptionalMemberAccess", - "range": { - "startColumn": 44, - "endColumn": 49, - "lineCount": 1 - } - }, - { - "code": "reportPossiblyUnboundVariable", - "range": { - "startColumn": 49, - "endColumn": 64, - "lineCount": 1 - } - }, - { - "code": "reportPossiblyUnboundVariable", - "range": { - "startColumn": 20, - "endColumn": 29, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 12, - "endColumn": 30, - "lineCount": 1 - } - }, - { - "code": "reportOptionalSubscript", - "range": { - "startColumn": 33, - "endColumn": 52, - "lineCount": 1 - } - }, - { - "code": "reportPossiblyUnboundVariable", - "range": { - "startColumn": 12, - "endColumn": 26, - "lineCount": 1 - } - }, - { - "code": "reportPossiblyUnboundVariable", - "range": { - "startColumn": 12, - "endColumn": 17, - "lineCount": 1 - } - }, - { - "code": "reportPossiblyUnboundVariable", - "range": { - "startColumn": 36, - "endColumn": 50, - "lineCount": 1 - } - }, - { - "code": "reportPossiblyUnboundVariable", - "range": { - "startColumn": 52, - "endColumn": 57, - "lineCount": 1 - } - }, - { - "code": "reportPossiblyUnboundVariable", - "range": { - "startColumn": 35, - "endColumn": 50, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 16, - "endColumn": 39, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 23, - "endColumn": 39, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 27, - "endColumn": 71, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 27, - "endColumn": 71, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 28, - "endColumn": 72, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 28, - "endColumn": 72, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 20, - "endColumn": 61, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 20, - "endColumn": 61, - "lineCount": 1 - } - }, - { - "code": "reportAttributeAccessIssue", - "range": { - "startColumn": 51, - "endColumn": 61, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", + "code": "reportOptionalMemberAccess", "range": { - "startColumn": 20, - "endColumn": 44, + "startColumn": 44, + "endColumn": 49, "lineCount": 1 } }, { - "code": "reportUnknownArgumentType", + "code": "reportPossiblyUnboundVariable", "range": { - "startColumn": 20, - "endColumn": 44, + "startColumn": 49, + "endColumn": 64, "lineCount": 1 } }, { - "code": "reportAttributeAccessIssue", + "code": "reportPossiblyUnboundVariable", "range": { - "startColumn": 34, - "endColumn": 44, + "startColumn": 20, + "endColumn": 29, "lineCount": 1 } }, @@ -4981,127 +3781,127 @@ "code": "reportUnknownVariableType", "range": { "startColumn": 12, - "endColumn": 23, + "endColumn": 30, "lineCount": 1 } }, { - "code": "reportUnknownMemberType", + "code": "reportOptionalSubscript", "range": { - "startColumn": 26, - "endColumn": 70, + "startColumn": 33, + "endColumn": 52, "lineCount": 1 } }, { - "code": "reportUnknownVariableType", + "code": "reportPossiblyUnboundVariable", "range": { - "startColumn": 16, - "endColumn": 25, + "startColumn": 12, + "endColumn": 26, "lineCount": 1 } }, { - "code": "reportUnknownVariableType", + "code": "reportPossiblyUnboundVariable", "range": { - "startColumn": 16, - "endColumn": 25, + "startColumn": 12, + "endColumn": 17, "lineCount": 1 } }, { - "code": "reportUnknownVariableType", + "code": "reportPossiblyUnboundVariable", "range": { - "startColumn": 16, - "endColumn": 34, + "startColumn": 36, + "endColumn": 50, "lineCount": 1 } }, { - "code": "reportUnknownMemberType", + "code": "reportPossiblyUnboundVariable", "range": { - "startColumn": 37, - "endColumn": 67, + "startColumn": 52, + "endColumn": 57, "lineCount": 1 } }, { - "code": "reportUnknownVariableType", + "code": "reportPossiblyUnboundVariable", "range": { - "startColumn": 16, - "endColumn": 34, + "startColumn": 35, + "endColumn": 50, "lineCount": 1 } }, { - "code": "reportUnknownArgumentType", + "code": "reportUnknownMemberType", "range": { - "startColumn": 24, - "endColumn": 77, - "lineCount": 6 + "startColumn": 16, + "endColumn": 39, + "lineCount": 1 } }, { "code": "reportUnknownArgumentType", "range": { - "startColumn": 28, - "endColumn": 76, - "lineCount": 4 + "startColumn": 23, + "endColumn": 39, + "lineCount": 1 } }, { - "code": "reportUnknownArgumentType", + "code": "reportUnknownMemberType", "range": { - "startColumn": 32, - "endColumn": 75, - "lineCount": 2 + "startColumn": 20, + "endColumn": 61, + "lineCount": 1 } }, { - "code": "reportUnknownMemberType", + "code": "reportUnknownArgumentType", "range": { - "startColumn": 44, - "endColumn": 74, + "startColumn": 20, + "endColumn": 61, "lineCount": 1 } }, { - "code": "reportUnknownArgumentType", + "code": "reportAttributeAccessIssue", "range": { - "startColumn": 44, - "endColumn": 74, + "startColumn": 51, + "endColumn": 61, "lineCount": 1 } }, { "code": "reportUnknownMemberType", "range": { - "startColumn": 12, - "endColumn": 26, + "startColumn": 20, + "endColumn": 44, "lineCount": 1 } }, { - "code": "reportUnknownMemberType", + "code": "reportUnknownArgumentType", "range": { - "startColumn": 45, - "endColumn": 73, + "startColumn": 20, + "endColumn": 44, "lineCount": 1 } }, { - "code": "reportUnknownArgumentType", + "code": "reportAttributeAccessIssue", "range": { - "startColumn": 45, - "endColumn": 73, + "startColumn": 34, + "endColumn": 44, "lineCount": 1 } }, { - "code": "reportUnknownArgumentType", + "code": "reportUnknownMemberType", "range": { - "startColumn": 43, - "endColumn": 61, + "startColumn": 12, + "endColumn": 26, "lineCount": 1 } }, @@ -19313,70 +18113,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 34, - "endColumn": 60, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 34, - "endColumn": 60, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 24, - "endColumn": 29, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 33, - "endColumn": 63, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 34, - "endColumn": 58, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 34, - "endColumn": 58, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 24, - "endColumn": 29, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 33, - "endColumn": 63, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -19385,22 +18121,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 28, - "endColumn": 33, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 37, - "endColumn": 67, - "lineCount": 1 - } - }, { "code": "reportUnannotatedClassAttribute", "range": { @@ -21163,22 +19883,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownParameterType", - "range": { - "startColumn": 19, - "endColumn": 22, - "lineCount": 1 - } - }, - { - "code": "reportMissingParameterType", - "range": { - "startColumn": 19, - "endColumn": 22, - "lineCount": 1 - } - }, { "code": "reportUnknownParameterType", "range": { @@ -21235,14 +19939,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 19, - "endColumn": 52, - "lineCount": 1 - } - }, { "code": "reportUnknownVariableType", "range": { @@ -29847,22 +28543,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 24, - "endColumn": 31, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 17, - "endColumn": 44, - "lineCount": 1 - } - }, { "code": "reportRedeclaration", "range": { @@ -30297,14 +28977,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 24, - "endColumn": 31, - "lineCount": 1 - } - }, { "code": "reportUnknownVariableType", "range": { @@ -30329,22 +29001,6 @@ "lineCount": 6 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 24, - "endColumn": 32, - "lineCount": 6 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 31, - "endColumn": 31, - "lineCount": 6 - } - }, { "code": "reportUnknownMemberType", "range": { diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2fa5407..83a270b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,18 +30,6 @@ jobs: pip install ruff ruff check - pylint: - name: Pylint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: "Main Script" - run: | - echo "- scipy" >> .test-conda-env-py3.yml - USE_CONDA_BUILD=1 - curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-pylint.sh - . ./prepare-and-run-pylint.sh "$(basename $GITHUB_REPOSITORY)" examples/*.py test/test_*.py - basedpyright: runs-on: ubuntu-latest steps: diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b11616e7..67450371 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -107,17 +107,6 @@ Ruff: except: - tags -Pylint: - script: | - export PY_EXE=python3 - EXTRA_INSTALL="Cython pybind11 numpy mako matplotlib scipy mpi4py h5py oct2py" - curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-pylint.sh - . ./prepare-and-run-pylint.sh "$CI_PROJECT_NAME" examples/*.py test/test_*.py - tags: - - python3 - except: - - tags - Downstream: parallel: matrix: diff --git a/.pylintrc-local.yml b/.pylintrc-local.yml deleted file mode 100644 index c6882019..00000000 --- a/.pylintrc-local.yml +++ /dev/null @@ -1,11 +0,0 @@ -- arg: py-version - val: '3.10' - -- arg: ignore - val: - - firedrake - - to_firedrake.py - - from_firedrake.py - - test_firedrake_interop.py -- arg: extension-pkg-whitelist - val: mayavi diff --git a/examples/simple-dg.py b/examples/simple-dg.py index efc396b2..1344f9bb 100644 --- a/examples/simple-dg.py +++ b/examples/simple-dg.py @@ -22,6 +22,7 @@ import logging from dataclasses import dataclass +from typing import ClassVar import numpy as np import numpy.linalg as la # noqa @@ -342,7 +343,7 @@ class TracePair: exterior: ArrayContainer # NOTE: let the container do the broadcasting + arithmetic - __array_ufunc__ = None + __array_ufunc__: ClassVar[None] = None def __getattr__(self, name): return map_array_container( diff --git a/meshmode/discretization/connection/direct.py b/meshmode/discretization/connection/direct.py index 4cc8e86b..41e6a9da 100644 --- a/meshmode/discretization/connection/direct.py +++ b/meshmode/discretization/connection/direct.py @@ -25,13 +25,16 @@ from abc import ABC, abstractmethod from dataclasses import dataclass -from typing import TYPE_CHECKING, Generic +from typing import TYPE_CHECKING, Generic, Literal, cast import numpy as np +from typing_extensions import override import loopy as lp from arraycontext import ( + Array, ArrayContext, + ArrayOrContainerOrScalarT, ArrayOrContainerT, ArrayT, NotAnArrayContainerError, @@ -55,18 +58,20 @@ if TYPE_CHECKING: from collections.abc import Sequence + from pytools.tag import Tag + from meshmode.discretization import Discretization, ElementGroupBase def _reshape_and_preserve_tags( - actx: ArrayContext, ary: ArrayT, new_shape: tuple[int, ...]) -> ArrayT: + actx: ArrayContext, ary: Array, new_shape: tuple[int, ...]) -> Array: try: - tags = ary.tags + tags = cast("frozenset[Tag]", ary.tags) # pyright: ignore[reportAttributeAccessIssue] except AttributeError: # 'ary' might not have a 'tags' attribute (e.g., in case of an np.ndarray) - return ary.reshape(new_shape) + return ary.reshape(*new_shape) else: - return actx.tag(tags, ary.reshape(new_shape)) + return actx.tag(tags, ary.reshape(*new_shape)) # {{{ interpolation batch @@ -262,7 +267,7 @@ class DiscretizationConnectionElementGroup: A list of :class:`InterpolationBatch` instances. """ - batches: Sequence[InterpolationBatch] + batches: Sequence[InterpolationBatch[Array]] def __init__(self, batches): self.batches = batches @@ -500,7 +505,7 @@ def _per_target_group_pick_info( if not batch_source_groups: return None - result: list[_FromGroupPickData] = [] + result: list[_FromGroupPickData[Array]] = [] for source_group_index in batch_source_groups: batch_indices_for_this_source_group = [ i for i, batch in enumerate(cgrp.batches) @@ -565,7 +570,7 @@ def _per_target_group_pick_info( def _global_point_pick_info( self, actx: ArrayContext - ) -> Sequence[Sequence[_FromGroupPickData] | None]: + ) -> Sequence[Sequence[_FromGroupPickData[Array]] | None]: if self._global_point_pick_info_cache is not None: return self._global_point_pick_info_cache @@ -578,11 +583,12 @@ def _global_point_pick_info( # {{{ __call__ + @override def __call__( - self, ary: ArrayOrContainerT, *, + self, ary: ArrayOrContainerOrScalarT, *, _force_use_loopy: bool = False, _force_no_merged_batches: bool = False, - ) -> ArrayOrContainerT: + ) -> ArrayOrContainerOrScalarT: """ :arg ary: a :class:`~meshmode.dof_array.DOFArray`, or an :class:`arraycontext.ArrayContainer` of them, containing nodal @@ -619,6 +625,7 @@ def __call__( assert isinstance(ary, DOFArray) actx = ary.array_context + assert actx is not None # {{{ kernels @@ -719,11 +726,11 @@ def group_pick_knl(is_surjective: bool): # }}} - group_arrays = [] + group_arrays: list[Array | Literal[0]] = [] for i_tgrp, (cgrp, group_pick_info) in enumerate( zip(self.groups, self._global_point_pick_info(actx), strict=True)): - group_array_contributions = [] + group_array_contributions: list[Array] = [] if _force_no_merged_batches: group_pick_info = None diff --git a/meshmode/dof_array.py b/meshmode/dof_array.py index b9d393ff..e40ed4d7 100644 --- a/meshmode/dof_array.py +++ b/meshmode/dof_array.py @@ -400,6 +400,8 @@ def __sub__(self, other: ArithType) -> DOFArray: ... def __rsub__(self, other: ArithType) -> DOFArray: ... def __mul__(self, other: ArithType) -> DOFArray: ... def __rmul__(self, other: ArithType) -> DOFArray: ... + def __pow__(self, other: ArithType) -> DOFArray: ... + def __rpow__(self, other: ArithType) -> DOFArray: ... def __truediv__(self, other: ArithType) -> DOFArray: ... def __rtruediv__(self, other: ArithType) -> DOFArray: ... @@ -518,7 +520,7 @@ def _reduce_norm(actx, arys, ord): raise NotImplementedError(f"unsupported value of 'ord': {ord}") -def flat_norm(ary, ord=None) -> Any: +def flat_norm(ary, ord: float | None = None) -> Any: r"""Return an element-wise :math:`\ell^{\text{ord}}` norm of *ary*. Unlike :attr:`arraycontext.ArrayContext.np`, this function handles @@ -552,7 +554,7 @@ def _rec(_ary): assert actx is _ary.array_context return _reduce_norm(actx, [ - actx.np.linalg.norm(actx.np.ravel(subary, order="A"), ord=ord) + actx.np.linalg.norm(actx.np.ravel(subary, order="C"), ord=ord) for _, subary in serialize_container(_ary) ], ord=ord) diff --git a/run-pylint.sh b/run-pylint.sh deleted file mode 100755 index 0d9a5cdc..00000000 --- a/run-pylint.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -set -o errexit -o nounset - -ci_support="https://gitlab.tiker.net/inducer/ci-support/raw/main" - -if [[ ! -f .pylintrc.yml ]]; then - curl -o .pylintrc.yml "${ci_support}/.pylintrc-default.yml" -fi - - -if [[ ! -f .run-pylint.py ]]; then - curl -L -o .run-pylint.py "${ci_support}/run-pylint.py" -fi - - -PYLINT_RUNNER_ARGS="--jobs=4 --yaml-rcfile=.pylintrc.yml" - -if [[ -f .pylintrc-local.yml ]]; then - PYLINT_RUNNER_ARGS+=" --yaml-rcfile=.pylintrc-local.yml" -fi - -python .run-pylint.py $PYLINT_RUNNER_ARGS $(basename $PWD) examples/*.py test/test_*.py "$@"