diff --git a/.basedpyright/baseline.json b/.basedpyright/baseline.json index 528606ce..daf1bbd6 100644 --- a/.basedpyright/baseline.json +++ b/.basedpyright/baseline.json @@ -7595,22 +7595,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 4, - "endColumn": 10, - "lineCount": 1 - } - }, - { - "code": "reportMissingTypeArgument", - "range": { - "startColumn": 17, - "endColumn": 27, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -7654,16 +7638,8 @@ { "code": "reportUnknownMemberType", "range": { - "startColumn": 12, - "endColumn": 25, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 12, - "endColumn": 25, + "startColumn": 11, + "endColumn": 29, "lineCount": 1 } }, @@ -7671,7 +7647,7 @@ "code": "reportUnknownMemberType", "range": { "startColumn": 11, - "endColumn": 29, + "endColumn": 34, "lineCount": 1 } }, @@ -7683,14 +7659,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 20, - "endColumn": 26, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -8745,22 +8713,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownParameterType", - "range": { - "startColumn": 8, - "endColumn": 37, - "lineCount": 1 - } - }, - { - "code": "reportMissingTypeArgument", - "range": { - "startColumn": 17, - "endColumn": 27, - "lineCount": 1 - } - }, { "code": "reportUnusedVariable", "range": { @@ -8785,30 +8737,6 @@ "lineCount": 1 } }, - { - "code": "reportMissingTypeArgument", - "range": { - "startColumn": 16, - "endColumn": 26, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 15, - "endColumn": 21, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 15, - "endColumn": 49, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -8873,22 +8801,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 8, - "endColumn": 14, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 17, - "endColumn": 51, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -8905,30 +8817,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 20, - "endColumn": 54, - "lineCount": 1 - } - }, - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 12, - "endColumn": 18, - "lineCount": 1 - } - }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 21, - "endColumn": 55, - "lineCount": 1 - } - }, { "code": "reportAny", "range": { @@ -11101,6 +10989,14 @@ "lineCount": 1 } }, + { + "code": "reportUnknownVariableType", + "range": { + "startColumn": 12, + "endColumn": 13, + "lineCount": 1 + } + }, { "code": "reportUnknownVariableType", "range": { @@ -11206,18 +11102,18 @@ } }, { - "code": "reportUnknownArgumentType", + "code": "reportUnknownVariableType", "range": { - "startColumn": 48, - "endColumn": 49, + "startColumn": 12, + "endColumn": 13, "lineCount": 1 } }, { - "code": "reportAny", + "code": "reportUnknownArgumentType", "range": { - "startColumn": 51, - "endColumn": 57, + "startColumn": 48, + "endColumn": 49, "lineCount": 1 } }, @@ -11405,6 +11301,14 @@ "lineCount": 1 } }, + { + "code": "reportUnknownVariableType", + "range": { + "startColumn": 8, + "endColumn": 9, + "lineCount": 1 + } + }, { "code": "reportUnknownMemberType", "range": { @@ -12269,6 +12173,14 @@ "lineCount": 1 } }, + { + "code": "reportUnknownVariableType", + "range": { + "startColumn": 8, + "endColumn": 9, + "lineCount": 1 + } + }, { "code": "reportUnknownArgumentType", "range": { @@ -12525,6 +12437,14 @@ "lineCount": 1 } }, + { + "code": "reportUnknownVariableType", + "range": { + "startColumn": 12, + "endColumn": 13, + "lineCount": 1 + } + }, { "code": "reportUnknownArgumentType", "range": { @@ -12741,6 +12661,14 @@ "lineCount": 1 } }, + { + "code": "reportUnknownVariableType", + "range": { + "startColumn": 12, + "endColumn": 13, + "lineCount": 1 + } + }, { "code": "reportUnknownArgumentType", "range": { @@ -13255,6 +13183,30 @@ "lineCount": 1 } }, + { + "code": "reportUnknownMemberType", + "range": { + "startColumn": 32, + "endColumn": 54, + "lineCount": 1 + } + }, + { + "code": "reportUnknownMemberType", + "range": { + "startColumn": 32, + "endColumn": 64, + "lineCount": 1 + } + }, + { + "code": "reportUnknownArgumentType", + "range": { + "startColumn": 32, + "endColumn": 66, + "lineCount": 1 + } + }, { "code": "reportAny", "range": { @@ -17099,6 +17051,22 @@ "lineCount": 1 } }, + { + "code": "reportUnknownVariableType", + "range": { + "startColumn": 8, + "endColumn": 14, + "lineCount": 1 + } + }, + { + "code": "reportUnknownMemberType", + "range": { + "startColumn": 17, + "endColumn": 37, + "lineCount": 1 + } + }, { "code": "reportUnknownParameterType", "range": { @@ -18360,7 +18328,7 @@ } }, { - "code": "reportAny", + "code": "reportUnknownVariableType", "range": { "startColumn": 4, "endColumn": 5, @@ -18384,7 +18352,7 @@ } }, { - "code": "reportAny", + "code": "reportUnknownMemberType", "range": { "startColumn": 11, "endColumn": 18, @@ -19375,14 +19343,6 @@ "lineCount": 1 } }, - { - "code": "reportUnknownMemberType", - "range": { - "startColumn": 63, - "endColumn": 82, - "lineCount": 1 - } - }, { "code": "reportUnknownMemberType", "range": { diff --git a/pyproject.toml b/pyproject.toml index 20f6a9ae..b8365385 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -121,13 +121,7 @@ pythonPlatform = "All" root = "pytools/test" reportUnknownArgumentType = "hint" reportPrivateUsage = "none" - -[tool.mypy] -python_version = "3.10" -ignore_missing_imports = true -warn_unused_ignores = true -# TODO: enable this at some point -# check_untyped_defs = true +reportAny = "none" [tool.typos.default] extend-ignore-re = [ diff --git a/run-mypy.sh b/run-mypy.sh deleted file mode 100755 index 36e98335..00000000 --- a/run-mypy.sh +++ /dev/null @@ -1,13 +0,0 @@ -#! /bin/bash - -set -ex - -python -m mypy --strict --follow-imports=silent \ - pytools/datatable.py \ - pytools/graph.py \ - pytools/persistent_dict.py \ - pytools/prefork.py \ - pytools/tag.py \ - pytools/lex.py -python -m mypy pytools -