Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 1.1.371 #489

Merged
merged 31 commits into from
Jul 10, 2024
Merged

Merge 1.1.371 #489

merged 31 commits into from
Jul 10, 2024

Conversation

DetachHead
Copy link
Owner

No description provided.

erictraut and others added 29 commits July 3, 2024 12:27
…type alias (not using PEP 695 syntax) defines a union and is then used as a second argument to an `isinstance` or `issubclass` call. This addresses #8302. (#8303)
…rather than `T` (where `T` is the enclosing class). This addresses #8305. (#8307)
…hrough the explicit instantiation of a metaclass."

This reverts commit 8792e4e.
…compatible with `--threads` command-line option.
…tor is used in an unparenthesized tuple expression on the RHS of an augmented assignment operator on Python 3.9 and newer. This addresses #8310.
…These are illegal according to the typing spec. (#8318)

This addresses #8316.
… with an upper bound of `type` as a base class in a `class` statement. This addresses #8313. (#8321)
…ssion includes more than 64 elements and is being evaluated with a bidirectional inference context. This addresses #8314.
…s when the pattern includes a star pattern and the subject type is a tuple with an indeterminate entry. (#8323)
…involve specialization, such as `dict[()]`. (#8329)
…names of some variables and functions for readability. (#8330)
…ses a generic class when it is used as a direct constructor call. This addresses #8337. (#8338)
…ated language client library requirements. This addresses #8344.
* Make python interpreter execution more secure

* Fix test failure
* initial pyright azure devops release pipeline

* fix prettier
…352)

* Update azure-pipelines-release.yml to trigger release on tag push

* change timeout and resume
# Conflicts:
#	packages/pyright/package-lock.json
#	packages/pyright/package.json
#	packages/vscode-pyright/package.json
Copy link
Contributor

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)
- 2205 errors, 0 warnings, 0 notes
+ 2214 errors, 0 warnings, 0 notes

black (https://github.com/psf/black)
+   /tmp/mypy_primer/projects/black/src/black/trans.py:397:9 - error: Return type is unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/black/src/black/trans.py:397:35 - error: Type of "_Key" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/black/src/black/trans.py:397:55 - error: Variable not allowed in type expression (reportInvalidTypeForm)
+   /tmp/mypy_primer/projects/black/src/black/trans.py:413:9 - error: Type of "key" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/black/src/black/trans.py:413:15 - error: Type of "_get_key" is partially unknown
+     Type of "_get_key" is "(string: str) -> Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/black/src/black/trans.py:429:9 - error: Type of "key" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/black/src/black/trans.py:429:15 - error: Type of "_get_key" is partially unknown
+     Type of "_get_key" is "(string: str) -> Unknown" (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/black/src/black/trans.py:441:9 - error: Type of "key" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/black/src/black/trans.py:441:15 - error: Type of "_get_key" is partially unknown
+     Type of "_get_key" is "(string: str) -> Unknown" (reportUnknownMemberType)
- 1817 errors, 0 warnings, 0 notes
+ 1826 errors, 0 warnings, 0 notes

mypy (https://github.com/python/mypy)
-   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:48:17 - error: Expected type expression but received "int" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:48:17 - error: Expected class but received "int" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:54:13 - error: Expected type expression but received "int" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:54:13 - error: Expected class but received "int" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:59:16 - error: Expected type expression but received "int" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:59:16 - error: Expected class but received "int" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:64:32 - error: Expected type expression but received "int" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:64:32 - error: Expected class but received "int" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:68:30 - error: Expected type expression but received "int" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:68:30 - error: Expected class but received "int" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:81:40 - error: Expected type expression but received "int" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:81:40 - error: Expected class but received "int" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:98:17 - error: Expected type expression but received "int" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:98:17 - error: Expected class but received "int" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:102:60 - error: Expected type expression but received "int" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:102:60 - error: Expected class but received "int" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:105:31 - error: Expected type expression but received "int" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:105:31 - error: Expected class but received "int" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:116:21 - error: Expected type expression but received "int" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:116:21 - error: Expected class but received "int" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:121:39 - error: Expected type expression but received "int" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:121:39 - error: Expected class but received "int" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:130:28 - error: Expected type expression but received "int" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:130:28 - error: Expected class but received "int" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:145:19 - error: Expected type expression but received "int" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:145:19 - error: Expected class but received "int" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:148:21 - error: Expected type expression but received "int" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:148:21 - error: Expected class but received "int" (reportGeneralTypeIssues)
-   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:154:22 - error: Expected type expression but received "int" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/mypy/mypyc/test-data/fixtures/typing-full.pyi:154:22 - error: Expected class but received "int" (reportGeneralTypeIssues)

artigraph (https://github.com/artigraph/artigraph)
-   /tmp/mypy_primer/projects/artigraph/src/arti/types/python.py:216:23 - error: Expected type expression but received "tuple[Any, ...]" (reportGeneralTypeIssues)
+   /tmp/mypy_primer/projects/artigraph/src/arti/types/python.py:216:23 - error: Expected class but received "tuple[Any, ...]" (reportGeneralTypeIssues)

sympy (https://github.com/sympy/sympy)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1804:41 - error: Type of "_eval_interval" is Any (reportAny)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1804:41 - error: Type of "_eval_interval" is partially unknown
+     Type of "_eval_interval" is "Any | Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1804:41 - error: Type of "_eval_interval" is Any (reportAny)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1804:41 - error: Type of "_eval_interval" is partially unknown
+     Type of "_eval_interval" is "Any | Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1804:41 - error: Return type of lambda is Any (reportAny)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1804:41 - error: Return type of lambda, "Any | Unknown", is partially unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1805:41 - error: Type of "_eval_interval" is Any (reportAny)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1805:41 - error: Type of "_eval_interval" is partially unknown
+     Type of "_eval_interval" is "Any | Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1805:41 - error: Type of "_eval_interval" is Any (reportAny)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1805:41 - error: Type of "_eval_interval" is partially unknown
+     Type of "_eval_interval" is "Any | Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1805:41 - error: Return type of lambda is Any (reportAny)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1805:41 - error: Return type of lambda, "Any | Unknown", is partially unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1807:41 - error: Type of "_eval_interval" is Any (reportAny)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1807:41 - error: Type of "_eval_interval" is partially unknown
+     Type of "_eval_interval" is "Any | Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1807:41 - error: Type of "_eval_interval" is Any (reportAny)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1807:41 - error: Type of "_eval_interval" is partially unknown
+     Type of "_eval_interval" is "Any | Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1807:41 - error: Return type of lambda is Any (reportAny)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1807:41 - error: Return type of lambda, "Any | Unknown", is partially unknown (reportUnknownLambdaType)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1809:5 - error: Type of "a" is Any (reportAny)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1809:5 - error: Type of "a" is partially unknown
+     Type of "a" is "Any | Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1810:12 - error: Type of "_eval_interval" is Any (reportAny)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1810:12 - error: Type of "_eval_interval" is partially unknown
+     Type of "_eval_interval" is "Any | Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1811:12 - error: Type of "_eval_interval" is Any (reportAny)
+   /tmp/mypy_primer/projects/sympy/sympy/core/tests/test_expr.py:1811:12 - error: Type of "_eval_interval" is partially unknown
+     Type of "_eval_interval" is "Any | Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/complexes.py:437:20 - error: Operator "*" not supported for types "Heaviside" and "Literal[2]" (reportOperatorIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/complexes.py:437:20 - error: Operator "*" not supported for types "type[__class_UndefinedFunction] | Unknown" and "Literal[2]"
+     Operator "*" not supported for types "type[__class_UndefinedFunction]" and "Literal[2]" (reportOperatorIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/complexes.py:681:24 - error: Operator "-" not supported for types "Heaviside" and "Heaviside" (reportOperatorIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/complexes.py:681:24 - error: Operator "-" not supported for types "type[__class_UndefinedFunction] | Unknown" and "type[__class_UndefinedFunction] | Unknown"
+     Operator "-" not supported for types "type[__class_UndefinedFunction]" and "type[__class_UndefinedFunction]" (reportOperatorIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/miscellaneous.py:771:9 - error: Return type, "type[__class_UndefinedFunction] | Unknown", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/miscellaneous.py:777:24 - error: Return type, "type[__class_UndefinedFunction] | Unknown", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/miscellaneous.py:779:20 - error: Return type, "type[__class_UndefinedFunction] | Unknown", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/miscellaneous.py:834:9 - error: Return type, "type[__class_UndefinedFunction] | Unknown", is partially unknown (reportUnknownParameterType)
+   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/miscellaneous.py:840:24 - error: Return type, "type[__class_UndefinedFunction] | Unknown", is partially unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/miscellaneous.py:842:20 - error: Return type, "type[__class_UndefinedFunction] | Unknown", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/tests/test_complexes.py:318:42 - error: Operator "*" not supported for types "Literal[2]" and "Heaviside" (reportOperatorIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/tests/test_complexes.py:318:42 - error: Operator "*" not supported for types "Literal[2]" and "type[__class_UndefinedFunction] | Unknown"
+     Operator "*" not supported for types "Literal[2]" and "type[__class_UndefinedFunction]" (reportOperatorIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/tests/test_complexes.py:489:17 - error: Operator "*" not supported for types "Symbol" and "Heaviside" (reportOperatorIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/tests/test_complexes.py:489:17 - error: Operator "*" not supported for types "Symbol" and "type[__class_UndefinedFunction] | Unknown"
+     Operator "*" not supported for types "Symbol" and "type[__class_UndefinedFunction]" (reportOperatorIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/tests/test_complexes.py:489:34 - error: Operator "*" not supported for types "Symbol" and "Heaviside" (reportOperatorIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/tests/test_complexes.py:489:34 - error: Operator "*" not supported for types "Symbol" and "type[__class_UndefinedFunction] | Unknown"
+     Operator "*" not supported for types "Symbol" and "type[__class_UndefinedFunction]" (reportOperatorIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/tests/test_miscellaneous.py:112:43 - error: Operator "-" not supported for type "type[__class_UndefinedFunction] | Unknown" (reportOperatorIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/tests/test_miscellaneous.py:113:11 - error: Operator "*" not supported for types "Literal[2]" and "Heaviside" (reportOperatorIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/tests/test_miscellaneous.py:113:11 - error: Operator "*" not supported for types "Literal[2]" and "type[__class_UndefinedFunction] | Unknown"
+     Operator "*" not supported for types "Literal[2]" and "type[__class_UndefinedFunction]" (reportOperatorIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/tests/test_miscellaneous.py:357:9 - error: Operator "*" not supported for types "Literal[3]" and "Heaviside" (reportOperatorIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/tests/test_miscellaneous.py:357:9 - error: Operator "*" not supported for types "Literal[3]" and "type[__class_UndefinedFunction] | Unknown"
+     Operator "*" not supported for types "Literal[3]" and "type[__class_UndefinedFunction]" (reportOperatorIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/tests/test_miscellaneous.py:364:9 - error: Operator "*" not supported for types "Literal[3]" and "Heaviside" (reportOperatorIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/tests/test_miscellaneous.py:364:9 - error: Operator "*" not supported for types "Literal[3]" and "type[__class_UndefinedFunction] | Unknown"
+     Operator "*" not supported for types "Literal[3]" and "type[__class_UndefinedFunction]" (reportOperatorIssue)
-   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/tests/test_miscellaneous.py:368:11 - error: Operator "*" not supported for types "Literal[2]" and "Heaviside" (reportOperatorIssue)
+   /tmp/mypy_primer/projects/sympy/sympy/functions/elementary/tests/test_miscellaneous.py:368:11 - error: Operator "*" not supported for types "Literal[2]" and "type[__class_UndefinedFunction] | Unknown"
+     Operator "*" not supported for types "Literal[2]" and "type[__class_UndefinedFunction]" (reportOperatorIssue)

... (truncated 824 lines) ...

sphinx (https://github.com/sphinx-doc/sphinx)
-   /tmp/mypy_primer/projects/sphinx/sphinx/parsers.py:67:27 - error: Type of "state_classes" is partially unknown
-     Type of "state_classes" is "Sequence[type[Unknown]]" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:208:25 - error: Type of "state" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:208:25 - error: Type of "document" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:219:9 - error: Type of "state" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:219:9 - error: Type of "document" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:219:9 - error: Type of "note_source" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:320:50 - error: Type of "state" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:320:50 - error: Type of "reporter" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:320:50 - error: Type of "reporter" is Any (reportAny)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:320:50 - error: Argument type is unknown
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:320:50 - error: Argument type is Any
-     Argument corresponds to parameter "reporter" in function "role" (reportUnknownArgumentType)
+     Argument corresponds to parameter "reporter" in function "role" (reportAny)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:326:13 - error: Type of "reporter" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:326:13 - error: Type of "reporter" is Any (reportAny)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:326:24 - error: Type of "state" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:326:24 - error: Type of "reporter" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:326:24 - error: Type of "reporter" is Any (reportAny)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:327:13 - error: Type of "error" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:327:13 - error: Type of "error" is Any (reportAny)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:327:21 - error: Type of "error" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/__init__.py:327:21 - error: Type of "error" is Any (reportAny)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:114:9 - error: Type of "document" is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:114:20 - error: Type of "state" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:114:20 - error: Type of "document" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:130:25 - error: Type of "reporter" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:130:25 - error: Type of "warning" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:130:25 - error: Type of "warning" is partially unknown
+     Type of "warning" is "(message: str | Exception, *children: Node, base_node: Node = ..., source: str = ..., **kwargs: Unknown) -> system_message" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:166:25 - error: Type of "reporter" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:166:25 - error: Type of "warning" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:166:25 - error: Type of "warning" is partially unknown
+     Type of "warning" is "(message: str | Exception, *children: Node, base_node: Node = ..., source: str = ..., **kwargs: Unknown) -> system_message" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:418:9 - error: Type of "document" is unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:418:20 - error: Type of "state" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:418:20 - error: Type of "document" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:419:16 - error: Type of "settings" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:420:21 - error: Type of "reporter" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:420:21 - error: Type of "warning" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:420:21 - error: Type of "warning" is partially unknown
+     Type of "warning" is "(message: str | Exception, *children: Node, base_node: Node = ..., source: str = ..., **kwargs: Unknown) -> system_message" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:466:21 - error: Type of "reporter" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:466:21 - error: Type of "warning" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/code.py:466:21 - error: Type of "warning" is partially unknown
+     Type of "warning" is "(message: str | Exception, *children: Node, base_node: Node = ..., source: str = ..., **kwargs: Unknown) -> system_message" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:329:25 - error: Type of "state" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:329:25 - error: Type of "document" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:335:21 - error: Type of "state" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:335:21 - error: Type of "memo" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:335:21 - error: Type of "memo" is Any (reportAny)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:341:13 - error: Type of "state" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:341:13 - error: Type of "nested_parse" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:341:13 - error: Type of "nested_parse" is partially unknown
+     Type of "nested_parse" is "(block: Unknown, input_offset: Unknown, node: Unknown, match_titles: bool = False, state_machine_class: Any | None = None, state_machine_kwargs: Any | None = None) -> Unknown" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:347:25 - error: Type of "state" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:347:25 - error: Type of "parent" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:347:25 - error: Type of "parent" is Any (reportAny)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:352:13 - error: Type of "parent" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:352:13 - error: Type of "parent" is Any (reportAny)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:352:22 - error: Type of "state" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:352:22 - error: Type of "parent" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:352:22 - error: Type of "parent" is Any (reportAny)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:355:17 - error: Type of "parent" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:355:17 - error: Type of "parent" is Any (reportAny)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:355:26 - error: Type of "parent" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:355:26 - error: Type of "parent" is Any (reportAny)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:364:42 - error: Type of "state" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:364:42 - error: Type of "parent" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:364:42 - error: Type of "parent" is Any (reportAny)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/patches.py:175:9 - error: Type of "state" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/patches.py:175:9 - error: Type of "document" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/directives/patches.py:175:9 - error: Type of "note_explicit_target" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/domains/changeset.py:59:25 - error: Type of "state" is unknown (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sphinx/sphinx/domains/changeset.py:59:25 - error: Type of "document" is unknown (reportUnknownMemberType)

... (truncated 317 lines) ...

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)
- 21647 errors, 0 warnings, 0 notes
+ 21652 errors, 0 warnings, 0 notes

scikit-learn (https://github.com/scikit-learn/scikit-learn)
-   /tmp/mypy_primer/projects/scikit-learn/sklearn/utils/tests/test_deprecation.py:39:18 - error: Expected type expression but received "type | property | _Wrapped[..., Unknown, ..., Unknown]"
+   /tmp/mypy_primer/projects/scikit-learn/sklearn/utils/tests/test_deprecation.py:39:18 - error: Expected class but received "type | property | _Wrapped[..., Unknown, ..., Unknown]"

alectryon (https://github.com/cpitclaudel/alectryon)
-   /tmp/mypy_primer/projects/alectryon/alectryon/docutils.py:861:13 - error: Type of "error" is unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/alectryon/alectryon/docutils.py:861:13 - error: Type of "error" is Any (reportAny)

... (truncated 1059 lines) ...```

@DetachHead DetachHead merged commit 16a61d7 into main Jul 10, 2024
19 checks passed
@DetachHead DetachHead deleted the merge-1.1.371 branch July 10, 2024 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants