Skip to content

Conversation

DetachHead
Copy link
Owner

fixes #542

@DetachHead DetachHead force-pushed the inlay-hint-settings branch from a964edf to 0627819 Compare October 3, 2024 13:07
Copy link
Contributor

github-actions bot commented Oct 3, 2024

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

sympy (https://github.com/sympy/sympy)
-     Type of "sqrtdenest" is "(expr: Unknown, max_iter: int = 3) -> (Unknown | Mul | Pow | Order | Expr | Add | None)" (reportUnknownVariableType)
+     Type of "sqrtdenest" is "(expr: Unknown, max_iter: int = 3) -> Unknown" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/subscheck.py:385:22 - error: Type of "simplify" is unknown (reportUnknownMemberType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/ode/subscheck.py:385:22 - error: Type of "simplify" is partially unknown
+     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 | 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)
+     Type of "_" is "Unknown | Any | 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 | _NotImplementedType" (reportUnknownArgumentType)
+     Argument type is "Unknown | Any | _NotImplementedType" (reportUnknownArgumentType)
-     Type of "eqs" is "list[Unknown]" (reportUnknownVariableType)
+     Type of "eqs" is "list[Unknown | Any]" (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is unknown
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:505:16 - error: Argument type is partially unknown
-     Argument corresponds to parameter "iterable" in function "__init__" (reportUnknownArgumentType)
+     Argument corresponds to parameter "iterable" in function "__init__"
+     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 unknown (reportUnknownVariableType)
+   /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_solvers.py:1768:5 - error: Type of "eqs" is partially unknown
+     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 | _NotImplementedType" (reportUnknownVariableType)
+     Type of "c" is "Unknown | Any | _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" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:1313:24 - error: Argument type is unknown
-     Argument corresponds to parameter "e" in function "expand" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/vector/coordsysrect.py:289:25 - error: Argument type is unknown
-     Argument corresponds to parameter "expr" in function "simplify" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/vector/coordsysrect.py:289:55 - error: Argument type is unknown
-     Argument corresponds to parameter "expr" in function "simplify" (reportUnknownArgumentType)
-     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> Unknown" (reportUnknownMemberType)
+     Type of "dot" is "(b: Unknown, hermitian: Unknown | None = None, conjugate_convention: Unknown | None = None) -> (Unknown | Any)" (reportUnknownMemberType)
-   /tmp/mypy_primer/projects/sympy/sympy/vector/coordsysrect.py:290:30 - error: Argument type is unknown
-     Argument corresponds to parameter "expr" in function "simplify" (reportUnknownArgumentType)
- 597159 errors, 0 warnings, 0 notes
+ 597150 errors, 0 warnings, 0 notes

@DetachHead DetachHead merged commit 3e5936a into main Oct 3, 2024
20 checks passed
@DetachHead DetachHead deleted the inlay-hint-settings branch October 3, 2024 13:51
Comment on lines +26 to +30
/**
* pylance's version of this option supports 3 settings: `"all" | "partial" | "off"`. `"all"` shows inlay hints
* for positional only arguments which i think is dumb so we don't support it
*/
callArgumentNames: boolean;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it's not implemented yet? #361

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh true, i'll do that next

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.

Options to disable each type of inlay hint
2 participants