-
Notifications
You must be signed in to change notification settings - Fork 21
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
Baseline lsp unit tests #706
Draft
DetachHead
wants to merge
2
commits into
main
Choose a base branch
from
baseline-lsp-unit-tests
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DetachHead
force-pushed
the
baseline-lsp-unit-tests
branch
from
September 27, 2024 12:56
9035296
to
1153548
Compare
This comment has been minimized.
This comment has been minimized.
Diff from mypy_primer, showing the effect of this PR on open source code: sympy (https://github.com/sympy/sympy)
- Type of "_get_const_characteristic_eq_sols" is "(r: Unknown, func: Unknown, order: Unknown) -> tuple[list[Unknown], list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]]" (reportUnknownVariableType)
+ Type of "_get_const_characteristic_eq_sols" is "(r: Unknown, func: Unknown, order: Unknown) -> tuple[list[Unknown], list[tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]]" (reportUnknownVariableType)
- Type of "collectterms" is "list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
+ Type of "collectterms" is "list[tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
- Type of "collectterms" is "list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
+ Type of "collectterms" is "list[tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
- Type of "collectterms" is "list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
+ Type of "collectterms" is "list[tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, Any, int] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, int]] | list[tuple[int, type[__class_UndefinedFunction] | Unknown, type[__class_UndefinedFunction] | Unknown] | tuple[int, type[__class_UndefinedFunction] | Unknown, int]]" (reportUnknownVariableType)
- Type of "sqrtdenest" is "(expr: Unknown, max_iter: int = 3) -> Unknown" (reportUnknownVariableType)
+ Type of "sqrtdenest" is "(expr: Unknown, max_iter: int = 3) -> (Unknown | Mul | Pow | Order | Expr | Add | None)" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/subscheck.py:385:22 - error: Type of "simplify" is partially unknown
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/subscheck.py:385:22 - error: Type of "simplify" is unknown (reportUnknownMemberType)
- Type of "simplify" is "Unknown | ((**kwargs: Unknown) -> Unknown)" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/subscheck.py:385:37 - error: "simplify" is not a known attribute of "None" (reportOptionalMemberAccess)
- Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+ Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
- Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+ Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
- Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+ Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
- Type of "_" is "Unknown | Any | Literal[False]" (reportUnknownVariableType)
+ Type of "_" is "Unknown | Literal[False]" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:501:5 - error: Type of "eqs" is partially unknown
+ Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
- Argument type is "Unknown | Any | _NotImplementedType" (reportUnknownArgumentType)
+ Argument type is "Unknown | _NotImplementedType" (reportUnknownArgumentType)
- Type of "eqs" is "list[Unknown | Any]" (reportUnknownVariableType)
+ Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is partially unknown
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is unknown
- Argument corresponds to parameter "iterable" in function "__init__"
+ Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
- Argument type is "Unknown | Any" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:717:18 - error: Argument type is unknown
+ Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is partially unknown
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is unknown (reportUnknownVariableType)
- Type of "eqs" is "Unknown | Any" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1769:18 - error: Argument type is unknown
+ Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1770:18 - error: Argument type is unknown
+ Argument corresponds to parameter "f" in function "solve" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/stats/tests/test_symbolic_multivariate.py:64:50 - error: Argument type is unknown
+ Argument corresponds to parameter "expr" in function "__new__" (reportUnknownArgumentType)
- Type of "c" is "Unknown | Any | _NotImplementedType" (reportUnknownVariableType)
+ Type of "c" is "Unknown | _NotImplementedType" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_lambdify.py:634:29 - error: Argument type is unknown
+ Argument corresponds to parameter "expr" in function "lambdify" (reportUnknownArgumentType)
- Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
... (truncated 17 lines) ...
spack (https://github.com/spack/spack)
- /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zsh/package.py:29:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zsh/package.py:29:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zsh/package.py:42:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zsh/package.py:42:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zsh/package.py:43:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zsh/package.py:43:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zstd/package.py:44:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zstd/package.py:45:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zstd/package.py:44:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zstd/package.py:45:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zstd/package.py:62:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zstd/package.py:64:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zstd/package.py:65:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
- /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zstd/package.py:66:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zstd/package.py:62:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zstd/package.py:64:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zstd/package.py:65:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/zstd/package.py:66:5 - error: Result of call expression is of type "(pkg: PackageBase) -> None" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this doesnt work and i cant be bothered figuring out why because the jest source maps are fucking up
fixes #707