-
Notifications
You must be signed in to change notification settings - Fork 38
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
double click to insert inlay hints #968
Merged
Merged
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
b53f178
to
9be6034
Compare
9be6034
to
7de806b
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
3e45102
to
a9c1f65
Compare
This comment has been minimized.
This comment has been minimized.
a9c1f65
to
e611b2a
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
… from the same module but it didn't work
…port comes from the current module, that doesn't rely on a venv
874d969
to
de7ed79
Compare
DetachHead
commented
Jan 26, 2025
This comment has been minimized.
This comment has been minimized.
de7ed79
to
df29c3c
Compare
df29c3c
to
565d0e9
Compare
This comment has been minimized.
This comment has been minimized.
…on the python version
Diff from mypy_primer, showing the effect of this PR on open source code: sympy (https://github.com/sympy/sympy)
- Type of "constant_renumber" is "(expr: Unknown, variables: Unknown | None = None, newconstants: Unknown | None = None) -> (list[Unknown] | set[Unknown] | tuple[Unknown, ...] | Boolean | Basic | Unknown)" (reportUnknownVariableType)
+ Type of "constant_renumber" is "(expr: Unknown, variables: Unknown | None = None, newconstants: Unknown | None = None) -> (list[Unknown] | set[Unknown] | tuple[Unknown, ...] | Boolean | Expr | Basic | Unknown)" (reportUnknownVariableType)
- Type of "i" is "Equality | Unknown" (reportUnknownVariableType)
+ Type of "i" is "Equality | Unknown | Relational | Unequality | Integer" (reportUnknownVariableType)
- Type of "decompogen" is "(f: Unknown, symbol: Unknown) -> (list[Expr] | list[Function | Pow] | list[Expr | Basic] | list[Function | Pow | Basic] | Unknown | list[Min | Max | Basic] | list[Unknown | Max | Min | Basic] | list[Basic] | list[Unknown | Poly | Basic] | list[Min | Max] | list[Unknown | Max | Min] | list[Unknown] | list[Unknown | Poly])" (reportUnknownVariableType)
+ Type of "decompogen" is "(f: Unknown, symbol: Unknown) -> (list[Expr] | list[Function | Pow] | list[Expr | Basic] | list[Function | Pow | Basic] | Unknown | list[Min | Max | Basic] | list[Unknown | Max | Min | Basic] | list[Basic] | list[Expr | Unknown | Basic] | list[Unknown | Poly | Basic] | list[Min | Max] | list[Unknown | Max | Min] | list[Expr | Unknown] | list[Unknown | Poly])" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_decompogen.py:23:31 - warning: Return type of lambda, "list[Expr] | list[Function | Pow] | list[Expr | Basic] | list[Function | Pow | Basic] | Unknown | list[Min | Max | Basic] | list[Unknown | Max | Min | Basic] | list[Basic] | list[Unknown | Poly | Basic] | list[Min | Max] | list[Unknown | Max | Min] | list[Unknown] | list[Unknown | Poly]", is partially unknown (reportUnknownLambdaType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_decompogen.py:23:31 - warning: Return type of lambda, "list[Expr] | list[Function | Pow] | list[Expr | Basic] | list[Function | Pow | Basic] | Unknown | list[Min | Max | Basic] | list[Unknown | Max | Min | Basic] | list[Basic] | list[Expr | Unknown | Basic] | list[Unknown | Poly | Basic] | list[Min | Max] | list[Unknown | Max | Min] | list[Expr | Unknown] | list[Unknown | Poly]", is partially unknown (reportUnknownLambdaType)
- Type of "rootof" is "(f: Unknown, x: Unknown, index: Unknown | None = None, radicals: bool = True, expand: bool = True) -> (Unknown | One | NegativeOne | Zero | Integer | Rational | NaN | ComplexInfinity | Half | Infinity | NegativeInfinity | Float | _NotImplementedType | Expr)" (reportUnknownVariableType)
+ Type of "rootof" is "(f: Unknown, x: Unknown, index: Unknown | None = None, radicals: bool = True, expand: bool = True) -> (Unknown | One | NegativeOne | Zero | Integer | Rational | NaN | ComplexInfinity | Half | Expr)" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_inequalities.py:134:9 - warning: Type of "inf" is partially unknown
+ Type of "inf" is "One | NegativeOne | Zero | Integer | Rational | NaN | ComplexInfinity | Half | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_inequalities.py:137:16 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "__new__"
- Argument type is "Equality | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_inequalities.py:137:16 - error: Argument of type "Equality | Unknown | Relational | Unequality | Integer" cannot be assigned to parameter "args" of type "Boolean | bool" in function "__new__"
+ Type "Equality | Unknown | Relational | Unequality | Integer" is not assignable to type "Boolean | bool"
+ Type "Integer" is not assignable to type "Boolean | bool"
+ "Integer" is not assignable to "Boolean"
+ "Integer" is not assignable to "bool" (reportArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_inequalities.py:137:29 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "__new__"
- Argument type is "Equality | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_inequalities.py:137:29 - error: Argument of type "Equality | Unknown | Relational | Unequality | Integer" cannot be assigned to parameter "args" of type "Boolean | bool" in function "__new__"
+ Type "Equality | Unknown | Relational | Unequality | Integer" is not assignable to type "Boolean | bool"
+ Type "Integer" is not assignable to type "Boolean | bool"
+ "Integer" is not assignable to "Boolean"
+ "Integer" is not assignable to "bool" (reportArgumentType)
- Type of "e" is "Equality | Unknown | NaN | Sum" (reportUnknownVariableType)
+ Type of "e" is "Equality | Unknown | Relational | Unequality | Integer | NaN | Sum" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_inequalities.py:287:12 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "__new__"
- Argument type is "Equality | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_inequalities.py:287:12 - error: Argument of type "Equality | Unknown | Relational | Unequality | Integer" cannot be assigned to parameter "args" of type "Boolean | bool" in function "__new__"
+ Type "Equality | Unknown | Relational | Unequality | Integer" is not assignable to type "Boolean | bool"
+ Type "Integer" is not assignable to type "Boolean | bool"
+ "Integer" is not assignable to "Boolean"
+ "Integer" is not assignable to "bool" (reportArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_inequalities.py:287:22 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "__new__"
- Argument type is "Equality | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_inequalities.py:287:22 - error: Argument of type "Equality | Unknown | Relational | Unequality | Integer" cannot be assigned to parameter "args" of type "Boolean | bool" in function "__new__"
+ Type "Equality | Unknown | Relational | Unequality | Integer" is not assignable to type "Boolean | bool"
+ Type "Integer" is not assignable to type "Boolean | bool"
+ "Integer" is not assignable to "Boolean"
+ "Integer" is not assignable to "bool" (reportArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_inequalities.py:297:79 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "__new__"
- Argument type is "Equality | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_inequalities.py:297:79 - error: Argument of type "Equality | Unknown | Relational | Unequality | Integer" cannot be assigned to parameter "args" of type "Boolean | bool" in function "__new__"
+ Type "Equality | Unknown | Relational | Unequality | Integer" is not assignable to type "Boolean | bool"
+ Type "Integer" is not assignable to type "Boolean | bool"
+ "Integer" is not assignable to "Boolean"
+ "Integer" is not assignable to "bool" (reportArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_inequalities.py:297:89 - warning: Argument type is partially unknown
- Argument corresponds to parameter "args" in function "__new__"
- Argument type is "Equality | Unknown" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_inequalities.py:297:89 - error: Argument of type "Equality | Unknown | Relational | Unequality | Integer" cannot be assigned to parameter "args" of type "Boolean | bool" in function "__new__"
+ Type "Equality | Unknown | Relational | Unequality | Integer" is not assignable to type "Boolean | bool"
+ Type "Integer" is not assignable to type "Boolean | bool"
+ "Integer" is not assignable to "Boolean"
+ "Integer" is not assignable to "bool" (reportArgumentType)
- Type of "r" is "Unknown | One | NegativeOne | Zero | Integer | Rational | NaN | ComplexInfinity | Half | Infinity | NegativeInfinity | Float | _NotImplementedType | Expr" (reportUnknownVariableType)
+ Type of "r" is "Unknown | One | NegativeOne | Zero | Integer | Rational | NaN | ComplexInfinity | Half | Expr" (reportUnknownVariableType)
- Type of "ie" is "Equality | Unknown" (reportUnknownVariableType)
+ Type of "ie" is "Equality | Unknown | Relational | Unequality | Integer" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/tests/test_inequalities.py:459:13 - warning: Type of "e" is partially unknown
+ Type of "e" is "Any | _NotImplementedType | StrictGreaterThan | Unknown | Equality | Relational | Unequality | Integer" (reportUnknownVariableType)
- Type of "e" is "Equality | Unknown" (reportUnknownVariableType)
+ Type of "e" is "Equality | Unknown | Relational | Unequality | Integer" (reportUnknownVariableType)
- Type of "eq" is "Equality | Unknown" (reportUnknownVariableType)
+ Type of "eq" is "Equality | Unknown | Relational | Unequality | Integer" (reportUnknownVariableType)
- Type of "eq" is "Equality | Unknown" (reportUnknownVariableType)
+ Type of "eq" is "Equality | Unknown | Relational | Unequality | Integer" (reportUnknownVariableType)
- Type of "eq" is "Equality | Unknown" (reportUnknownVariableType)
+ Type of "eq" is "Equality | Unknown | Relational | Unequality | Integer" (reportUnknownVariableType)
... (truncated 5115 lines) ...
arviz (https://github.com/arviz-devs/arviz): 5.73x slower (5.7s -> 32.8s in a single noisy sample)
|
Hi, I am using basedpyright 1.26 in neovim 10.4 |
i'm not sure whether neovim supports it, i guess you'd have to ask the maintainers of neovim |
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.
fixes #198