microsoft / pyright

Static Type Checker for Python
Other
13.21k stars 1.42k forks source link

Improved detection of the use of variables used in type annotations. … #8315

Closed erictraut closed 3 months ago

erictraut commented 3 months ago

…These are illegal according to the typing spec.

github-actions[bot] commented 3 months ago

Diff from mypy_primer, showing the effect of this PR on open source code:


pytest-robotframework (https://github.com/detachhead/pytest-robotframework)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/__init__.py:743:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/pytest/robot_file_support.py:72:21 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/pytest/robot_file_support.py:83:36 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:217:34 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:226:32 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:259:32 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:298:34 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/utils.py:94:26 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/utils.py:184:26 - error: Variable not allowed in type expression (reportInvalidTypeForm)
- 294 errors, 18 warnings, 0 informations 
+ 303 errors, 18 warnings, 0 informations 

black (https://github.com/psf/black)
+   /tmp/mypy_primer/projects/black/src/black/trans.py:397:55 - error: Variable not allowed in type expression (reportInvalidTypeForm)
- 73 errors, 9 warnings, 0 informations 
+ 74 errors, 9 warnings, 0 informations 

mypy (https://github.com/python/mypy)
+ /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/dbm/gnu.pyi
+   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/dbm/gnu.pyi:16:11 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+ /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/dbm/ndbm.pyi
+   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/dbm/ndbm.pyi:16:11 - error: Variable not allowed in type expression (reportInvalidTypeForm)
- 1745 errors, 108 warnings, 0 informations 
+ 1747 errors, 108 warnings, 0 informations 

sympy (https://github.com/sympy/sympy)
+   /tmp/mypy_primer/projects/sympy/sympy/core/function.py:334:53 - error: Variable not allowed in type expression (reportInvalidTypeForm)
-   /tmp/mypy_primer/projects/sympy/sympy/core/function.py:334:53 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:2741:7 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:2809:7 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:2860:7 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:2924:7 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:2956:7 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:3146:7 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:3313:7 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:3435:7 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:3572:7 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:3727:7 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:3795:7 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:3858:7 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:3931:7 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:3990:7 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:4053:7 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:4439:16 - error: Variable not allowed in type expression (reportInvalidTypeForm)
-   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:4439:16 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:4441:16 - error: Variable not allowed in type expression (reportInvalidTypeForm)
-   /tmp/mypy_primer/projects/sympy/sympy/core/numbers.py:4441:16 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:694:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:699:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:704:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:709:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:719:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:724:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:729:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:734:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:739:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:754:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:759:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:764:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:779:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:784:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:799:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:694:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:699:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:704:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:709:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:719:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:724:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:729:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:734:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:739:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:754:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:759:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:764:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:779:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:784:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:799:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:892:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:897:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:966:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:971:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:976:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:981:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:986:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:991:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:892:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:897:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:966:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:971:23 - error: No overloads for "__new__" match the provided arguments
-     Argument types: () (reportCallIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_args.py:976:23 - error: No overloads for "__new__" match the provided arguments

... (truncated 83 lines) ...

dedupe (https://github.com/dedupeio/dedupe)
+   /tmp/mypy_primer/projects/dedupe/dedupe/api.py:105:44 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/api.py:299:31 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/api.py:555:34 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/api.py:610:35 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/api.py:870:50 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/api.py:888:32 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/api.py:1557:26 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/clustering.py:21:15 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/clustering.py:22:16 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/clustering.py:55:15 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/clustering.py:56:16 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/clustering.py:101:30 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/clustering.py:178:12 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/clustering.py:218:12 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/clustering.py:288:27 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/clustering.py:304:29 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/clustering.py:319:19 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/core.py:88:17 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/core.py:107:6 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/core.py:161:19 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/core.py:195:41 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/core.py:209:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/dedupe/dedupe/core.py:221:16 - error: Variable not allowed in type expression (reportInvalidTypeForm)
- 164 errors, 1 warning, 0 informations 
+ 187 errors, 1 warning, 0 informations 

freqtrade (https://github.com/freqtrade/freqtrade)
+   /tmp/mypy_primer/projects/freqtrade/freqtrade/persistence/custom_data.py:29:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/freqtrade/freqtrade/persistence/key_value_store.py:32:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/freqtrade/freqtrade/persistence/pairlock.py:17:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/freqtrade/freqtrade/persistence/trade_model.py:77:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/freqtrade/freqtrade/persistence/trade_model.py:1606:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
- 597 errors, 43 warnings, 0 informations 
+ 602 errors, 43 warnings, 0 informations 

pandera (https://github.com/pandera-dev/pandera)
+   /tmp/mypy_primer/projects/pandera/pandera/api/polars/components.py:113:20 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/api/polars/components.py:120:10 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/api/polars/container.py:42:20 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/api/polars/container.py:49:10 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/api/polars/utils.py:13:37 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/backends/pandas/checks.py:47:22 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/backends/pyspark/checks.py:46:22 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/backends/pyspark/decorators.py:20:37 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/numpy_engine.py:49:37 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/numpy_engine.py:50:16 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/numpy_engine.py:63:37 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/numpy_engine.py:64:16 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/numpy_engine.py:66:37 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/numpy_engine.py:352:31 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/numpy_engine.py:353:16 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/numpy_engine.py:365:34 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:145:38 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:145:55 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:159:42 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:159:59 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:185:34 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:579:38 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:579:55 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:635:38 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:635:55 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:712:31 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:713:16 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:740:34 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:830:20 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:864:31 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:865:10 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:872:31 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:872:48 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:914:38 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:914:55 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:958:31 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:959:10 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:962:31 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:962:48 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:973:38 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:973:55 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:1148:39 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:1148:59 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:1188:38 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:1188:58 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:1209:42 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:1209:62 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:1247:38 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:1307:38 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:1307:55 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:1421:34 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:1440:38 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:1440:55 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:1997:42 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:1997:59 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:2023:42 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:2023:59 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/polars_engine.py:63:40 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/polars_engine.py:563:25 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/polars_engine.py:585:25 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pyspark_engine.py:93:38 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pyspark_engine.py:93:56 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pyspark_engine.py:98:42 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/pyspark_engine.py:98:60 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/utils.py:42:27 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pandera/pandera/engines/utils.py:43:6 - error: Variable not allowed in type expression (reportInvalidTypeForm)

... (truncated 9 lines) ...

pydantic (https://github.com/pydantic/pydantic)
+   /tmp/mypy_primer/projects/pydantic/pydantic/annotated_handlers.py:32:37 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:320:15 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:320:48 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:329:23 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:329:56 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:330:33 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:445:38 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:490:43 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:523:34 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:541:34 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:981:17 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1270:54 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1305:64 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1329:38 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1498:54 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1512:39 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1564:54 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:1881:49 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/json_schema.py:2172:54 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/_internal/_core_metadata.py:45:32 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/pydantic/pydantic/_internal/_core_utils.py:54:13 - error: Variable not allowed in type expression (reportInvalidTypeForm)

... (truncated 714 lines) ...```