diff --git a/.basedpyright/baseline.json b/.basedpyright/baseline.json index e63d7cd..d83cd9e 100644 --- a/.basedpyright/baseline.json +++ b/.basedpyright/baseline.json @@ -1501,38 +1501,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 4, - "endColumn": 7, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 10, - "endColumn": 18, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 8, - "endColumn": 11, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 14, - "endColumn": 22, - "lineCount": 1 - } - }, { "code": "reportUnknownVariableType", "range": { @@ -1566,7 +1534,7 @@ } }, { - "code": "reportUnknownMemberType", + "code": "reportAny", "range": { "startColumn": 21, "endColumn": 39, @@ -1574,7 +1542,7 @@ } }, { - "code": "reportUnknownMemberType", + "code": "reportAny", "range": { "startColumn": 43, "endColumn": 54, @@ -1582,7 +1550,7 @@ } }, { - "code": "reportUnknownMemberType", + "code": "reportAny", "range": { "startColumn": 25, "endColumn": 43, @@ -1590,7 +1558,7 @@ } }, { - "code": "reportUnknownMemberType", + "code": "reportAny", "range": { "startColumn": 47, "endColumn": 58, @@ -1614,18 +1582,18 @@ } }, { - "code": "reportUnknownVariableType", + "code": "reportAny", "range": { - "startColumn": 16, - "endColumn": 21, + "startColumn": 26, + "endColumn": 35, "lineCount": 1 } }, { - "code": "reportUnknownArgumentType", + "code": "reportAny", "range": { - "startColumn": 33, - "endColumn": 36, + "startColumn": 37, + "endColumn": 46, "lineCount": 1 } }, @@ -1648,21 +1616,37 @@ { "code": "reportAny", "range": { - "startColumn": 23, - "endColumn": 24, + "startColumn": 38, + "endColumn": 47, "lineCount": 1 } }, { "code": "reportUnknownVariableType", "range": { - "startColumn": 12, - "endColumn": 13, + "startColumn": 16, + "endColumn": 21, "lineCount": 1 } }, { - "code": "reportUnknownVariableType", + "code": "reportUnknownArgumentType", + "range": { + "startColumn": 33, + "endColumn": 36, + "lineCount": 1 + } + }, + { + "code": "reportAny", + "range": { + "startColumn": 38, + "endColumn": 47, + "lineCount": 1 + } + }, + { + "code": "reportAny", "range": { "startColumn": 23, "endColumn": 24, @@ -1672,40 +1656,40 @@ { "code": "reportUnknownVariableType", "range": { - "startColumn": 23, - "endColumn": 24, + "startColumn": 12, + "endColumn": 13, "lineCount": 1 } }, { "code": "reportAny", "range": { - "startColumn": 19, - "endColumn": 20, - "lineCount": 1 + "startColumn": 26, + "endColumn": 68, + "lineCount": 4 } }, { - "code": "reportUnknownVariableType", + "code": "reportAny", "range": { - "startColumn": 15, - "endColumn": 18, + "startColumn": 23, + "endColumn": 24, "lineCount": 1 } }, { - "code": "reportUnknownVariableType", + "code": "reportAny", "range": { - "startColumn": 15, - "endColumn": 23, + "startColumn": 23, + "endColumn": 24, "lineCount": 1 } }, { "code": "reportAny", "range": { - "startColumn": 9, - "endColumn": 17, + "startColumn": 19, + "endColumn": 20, "lineCount": 1 } }, @@ -1899,22 +1883,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 37, - "endColumn": 44, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 45, - "endColumn": 52, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -3341,14 +3309,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 11, - "endColumn": 13, - "lineCount": 1 - } - }, { "code": "reportArgumentType", "range": { @@ -3420,6 +3380,14 @@ "endColumn": 54, "lineCount": 1 } + }, + { + "code": "reportCallIssue", + "range": { + "startColumn": 15, + "endColumn": 49, + "lineCount": 11 + } } ], "./pymbolic/interop/common.py": [ @@ -6117,38 +6085,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 37, - "endColumn": 39, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 62, - "endColumn": 64, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 68, - "endColumn": 77, - "lineCount": 1 - } - }, - { - "code": "reportUnnecessaryTypeIgnoreComment", - "range": { - "startColumn": 98, - "endColumn": 116, - "lineCount": 1 - } - }, { "code": "reportReturnType", "range": { @@ -6841,14 +6777,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 19, - "endColumn": 29, - "lineCount": 1 - } - }, { "code": "reportArgumentType", "range": { @@ -8574,7 +8502,7 @@ } }, { - "code": "reportUnknownArgumentType", + "code": "reportAny", "range": { "startColumn": 49, "endColumn": 52, @@ -8582,7 +8510,7 @@ } }, { - "code": "reportUnknownVariableType", + "code": "reportAny", "range": { "startColumn": 58, "endColumn": 61, @@ -8590,7 +8518,7 @@ } }, { - "code": "reportUnknownArgumentType", + "code": "reportAny", "range": { "startColumn": 69, "endColumn": 72, @@ -8598,15 +8526,7 @@ } }, { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 20, - "endColumn": 21, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", + "code": "reportAny", "range": { "startColumn": 23, "endColumn": 26, @@ -8705,14 +8625,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 12, - "endColumn": 20, - "lineCount": 1 - } - }, { "code": "reportReturnType", "range": { @@ -8721,14 +8633,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 15, - "endColumn": 23, - "lineCount": 1 - } - }, { "code": "reportUnknownVariableType", "range": { @@ -8744,14 +8648,6 @@ "endColumn": 33, "lineCount": 1 } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 32, - "endColumn": 54, - "lineCount": 1 - } } ], "./pymbolic/primitives.py": [ @@ -8787,14 +8683,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 19, - "endColumn": 33, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -9797,14 +9685,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 28, - "endColumn": 34, - "lineCount": 1 - } - }, { "code": "reportImplicitOverride", "range": { @@ -11591,6 +11471,14 @@ "lineCount": 1 } }, + { + "code": "reportUnknownVariableType", + "range": { + "startColumn": 8, + "endColumn": 17, + "lineCount": 1 + } + }, { "code": "reportMissingTypeArgument", "range": { @@ -11896,10 +11784,10 @@ } }, { - "code": "reportUnknownVariableType", + "code": "reportAny", "range": { - "startColumn": 4, - "endColumn": 8, + "startColumn": 14, + "endColumn": 35, "lineCount": 1 } }, @@ -11912,10 +11800,10 @@ } }, { - "code": "reportUnknownVariableType", + "code": "reportAny", "range": { - "startColumn": 4, - "endColumn": 8, + "startColumn": 14, + "endColumn": 35, "lineCount": 1 } }, @@ -11928,10 +11816,10 @@ } }, { - "code": "reportUnknownVariableType", + "code": "reportAny", "range": { - "startColumn": 4, - "endColumn": 8, + "startColumn": 14, + "endColumn": 35, "lineCount": 1 } }, @@ -11944,10 +11832,10 @@ } }, { - "code": "reportUnknownVariableType", + "code": "reportAny", "range": { - "startColumn": 4, - "endColumn": 8, + "startColumn": 14, + "endColumn": 35, "lineCount": 1 } }, @@ -11960,10 +11848,10 @@ } }, { - "code": "reportUnknownVariableType", + "code": "reportAny", "range": { - "startColumn": 4, - "endColumn": 8, + "startColumn": 14, + "endColumn": 35, "lineCount": 1 } }, @@ -11991,14 +11879,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 4, - "endColumn": 8, - "lineCount": 1 - } - }, { "code": "reportUnknownVariableType", "range": { @@ -12047,30 +11927,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 8, - "endColumn": 9, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 11, - "endColumn": 12, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 14, - "endColumn": 15, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -12167,38 +12023,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 21, - "endColumn": 24, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 45, - "endColumn": 48, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 12, - "endColumn": 15, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 43, - "endColumn": 49, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -12263,14 +12087,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 38, - "endColumn": 41, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { @@ -12279,14 +12095,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 36, - "endColumn": 39, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { diff --git a/pymbolic/compiler.py b/pymbolic/compiler.py index 3f44954..936911f 100644 --- a/pymbolic/compiler.py +++ b/pymbolic/compiler.py @@ -137,6 +137,7 @@ def _compile(self, expr_s) self._code = eval(func_s, ctx) + @override def __getstate__(self) -> tuple[Any, ...]: return self._Expression, self._Variables diff --git a/pymbolic/primitives.py b/pymbolic/primitives.py index 3bea04d..95dd3c2 100644 --- a/pymbolic/primitives.py +++ b/pymbolic/primitives.py @@ -778,6 +778,7 @@ def __hash__(self) -> int: self._hash_value: int = self.get_hash() # pyright: ignore[reportUninitializedInstanceVariable] return self._hash_value + @override def __getstate__(self) -> tuple[Any, ...]: return self.__getinitargs__() diff --git a/pyproject.toml b/pyproject.toml index 4ab2611..ae5687b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -139,7 +139,7 @@ ignore = [ # https://github.com/microsoft/pyright/issues/746 reportImportCycles = "none" -pythonVersion = "3.10" +pythonVersion = "3.12" pythonPlatform = "All" [[tool.basedpyright.executionEnvironments]]