-
Notifications
You must be signed in to change notification settings - Fork 96
fix writeBaseline, restartServer and createTypeStub commands only being registered in the vscode extension instead of the language server
#1385
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
Merged
Conversation
This file contains hidden or 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
This comment has been minimized.
This comment has been minimized.
041ebd5 to
c66b07b
Compare
c66b07b to
fde386d
Compare
Contributor
|
Diff from mypy_primer, showing the effect of this PR on open source code: sympy (https://github.com/sympy/sympy)
- Type of "exptrigsimp" is "(expr: Unknown) -> (Unknown | Expr)" (reportUnknownVariableType)
+ Type of "exptrigsimp" is "(expr: Unknown) -> Unknown" (reportUnknownVariableType)
- Type of "trigsimp" is "(expr: Unknown, inverse: bool = False, **opts: Unknown) -> (Any | Unknown | Expr | Basic | atan2 | ComplexInfinity | NaN | Rational | Zero | Infinity | NegativeInfinity | Float)" (reportUnknownVariableType)
+ Type of "trigsimp" is "(expr: Unknown, inverse: bool = False, **opts: Unknown) -> (Any | Unknown | Expr | Basic | atan2 | ComplexInfinity | NaN | Rational | Zero | Infinity | NegativeInfinity | Float | _NotImplementedType)" (reportUnknownVariableType)
- .../projects/sympy/sympy/simplify/tests/test_trigsimp.py:93:16 - error: Operator "-" not supported for types "Any | Unknown | Expr | Basic | atan2 | ComplexInfinity | NaN | Rational | Zero | Infinity | NegativeInfinity | Float" and "float"
+ .../projects/sympy/sympy/simplify/tests/test_trigsimp.py:93:16 - error: Operator "-" not supported for types "Any | Unknown | Expr | Basic | atan2 | ComplexInfinity | NaN | Rational | Zero | Infinity | NegativeInfinity | Float | _NotImplementedType" and "float"
- Type of "trigsimp" is "(**args: Unknown) -> (Any | Unknown | Expr | Basic | atan2 | ComplexInfinity | NaN | Rational | Zero | Infinity | NegativeInfinity | Float)" (reportUnknownMemberType)
+ Type of "trigsimp" is "(**args: Unknown) -> (Any | Unknown | Expr | Basic | atan2 | ComplexInfinity | NaN | Rational | Zero | Infinity | NegativeInfinity | Float | _NotImplementedType)" (reportUnknownMemberType)
- .../projects/sympy/sympy/simplify/tests/test_trigsimp.py:307:16 - error: Operator "-" not supported for types "Any | Unknown | Expr | Basic | atan2 | ComplexInfinity | NaN | Rational | Zero | Infinity | NegativeInfinity | Float" and "float"
+ .../projects/sympy/sympy/simplify/tests/test_trigsimp.py:307:16 - error: Operator "-" not supported for types "Any | Unknown | Expr | Basic | atan2 | ComplexInfinity | NaN | Rational | Zero | Infinity | NegativeInfinity | Float | _NotImplementedType" and "float"
- .../projects/sympy/sympy/simplify/tests/test_trigsimp.py:452:5 - warning: Type of "e3" is unknown (reportUnknownVariableType)
+ .../projects/sympy/sympy/simplify/tests/test_trigsimp.py:452:5 - warning: Type of "e3" is partially unknown
+ Type of "e3" is "Unknown | Expr | Any" (reportUnknownVariableType)
- Type of "angle_inverted" is "Any | Unknown | Expr | Basic | atan2 | ComplexInfinity | NaN | Rational | Zero | Infinity | NegativeInfinity | Float" (reportUnknownVariableType)
+ Type of "angle_inverted" is "Any | Unknown | Expr | Basic | atan2 | ComplexInfinity | NaN | Rational | Zero | Infinity | NegativeInfinity | Float | _NotImplementedType" (reportUnknownVariableType)
- Type of "rsolve" is "(f: Unknown, y: Unknown, init: Unknown | None = None) -> (Unknown | Expr | Zero | None)" (reportUnknownVariableType)
+ Type of "rsolve" is "(f: Unknown, y: Unknown, init: Unknown | None = None) -> Unknown" (reportUnknownVariableType)
- Type of "homogeneous_order" is "(eq: Unknown, *symbols: Unknown) -> (Zero | Unknown | None)" (reportUnknownVariableType)
+ Type of "homogeneous_order" is "(eq: Unknown, *symbols: Unknown) -> (Zero | Expr | Unknown | None)" (reportUnknownVariableType)
+ Type of "decompogen" is "(f: Unknown, symbol: Unknown) -> (list[Expr] | list[Function | Pow] | list[Expr | Basic] | list[Function | Pow | Basic] | list[Basic] | Unknown | list[Min | Max | Basic] | list[Unknown | Max | Min | Basic] | list[Min | Max] | list[Unknown | Max | Min] | list[Unknown])" (reportUnknownVariableType)
- Type of "separatevars" is "(expr: Unknown, symbols: Unknown = [], dict: bool = False, force: bool = False) -> (dict[str, Unknown] | dict[Unknown, list[Unknown]] | Unknown | None)" (reportUnknownVariableType)
+ Type of "separatevars" is "(expr: Unknown, symbols: Unknown = [], dict: bool = False, force: bool = False) -> (dict[str, Expr | Abs | Unknown] | dict[Unknown | Basic, list[Unknown]] | Unknown | None)" (reportUnknownVariableType)
- .../projects/sympy/sympy/solvers/bivariate.py:114:9 - warning: Type of "a" is unknown (reportUnknownVariableType)
+ .../projects/sympy/sympy/solvers/bivariate.py:114:9 - warning: Type of "a" is partially unknown
+ Type of "a" is "Expr | Unknown" (reportUnknownVariableType)
- .../projects/sympy/sympy/solvers/bivariate.py:114:12 - warning: Type of "x" is unknown (reportUnknownVariableType)
+ .../projects/sympy/sympy/solvers/bivariate.py:114:12 - warning: Type of "x" is partially unknown
+ Type of "x" is "Expr | Unknown" (reportUnknownVariableType)
- .../projects/sympy/sympy/solvers/bivariate.py:114:16 - warning: Type of "as_independent" is unknown (reportUnknownMemberType)
+ .../projects/sympy/sympy/solvers/bivariate.py:114:16 - warning: Type of "as_independent" is partially unknown
+ Type of "as_independent" is "Unknown | ((...) -> tuple[Expr, Expr])" (reportUnknownMemberType)
- .../projects/sympy/sympy/solvers/bivariate.py:114:34 - error: Cannot access attribute "as_independent" for class "dict[str, Unknown]"
+ .../projects/sympy/sympy/solvers/bivariate.py:114:34 - error: Cannot access attribute "as_independent" for class "dict[str, Expr | Abs | Unknown]"
- .../projects/sympy/sympy/solvers/bivariate.py:114:34 - error: Cannot access attribute "as_independent" for class "dict[Unknown, list[Unknown]]"
+ .../projects/sympy/sympy/solvers/bivariate.py:114:34 - error: Cannot access attribute "as_independent" for class "dict[Unknown | Basic, list[Unknown]]"
+ .../projects/sympy/sympy/solvers/bivariate.py:114:49 - warning: Argument type is unknown
+ Argument corresponds to parameter "deps" in function "as_independent" (reportUnknownArgumentType)
+ Type of "eq" is "Unknown | Expr | Any | Piecewise | Self@Add | Integer | None" (reportUnknownVariableType)
- Type of "eq" is "Unknown | None" (reportUnknownVariableType)
- .../projects/sympy/sympy/solvers/bivariate.py:128:19 - warning: Argument type is unknown
- Argument corresponds to parameter "expr" in function "_mexpand" (reportUnknownArgumentType)
- Type of "mainlog" is "Unknown | None" (reportUnknownVariableType)
+ Type of "mainlog" is "log | Any | Unknown | None" (reportUnknownVariableType)
- .../projects/sympy/sympy/solvers/bivariate.py:132:5 - warning: Type of "other" is unknown (reportUnknownVariableType)
+ .../projects/sympy/sympy/solvers/bivariate.py:132:5 - warning: Type of "other" is partially unknown
+ Type of "other" is "Expr | Any | Unknown" (reportUnknownVariableType)
- .../projects/sympy/sympy/solvers/bivariate.py:132:13 - warning: Type of "subs" is unknown (reportUnknownMemberType)
+ .../projects/sympy/sympy/solvers/bivariate.py:132:13 - warning: Type of "subs" is partially unknown
+ Type of "subs" is "Unknown | Overload[(arg1: Mapping[Basic | complex, Expr | complex], arg2: None = None) -> Expr, (arg1: Iterable[tuple[Basic | complex, Expr | complex]], arg2: None = None, **kwargs: Any) -> Expr, (arg1: Expr | complex, arg2: Expr | complex) -> Expr, (arg1: Mapping[Basic | complex, Basic | complex], arg2: None = None, **kwargs: Any) -> Basic, (arg1: Iterable[tuple[Basic | complex, Basic | complex]], arg2: None = None, **kwargs: Any) -> Basic, (arg1: Basic | complex, arg2: Basic | complex, **kwargs: Any) -> Basic] | Any" (reportUnknownMemberType)
+ .../projects/sympy/sympy/solvers/bivariate.py:132:21 - warning: Argument type is partially unknown
+ Argument corresponds to parameter "arg1" in function "subs"
+ Argument type is "log | Any | Unknown" (reportUnknownArgumentType)
- .../projects/sympy/sympy/solvers/bivariate.py:134:9 - warning: Type of "eq" is unknown (reportUnknownVariableType)
+ .../projects/sympy/sympy/solvers/bivariate.py:134:9 - warning: Type of "eq" is partially unknown
+ Type of "eq" is "Expr | Any | Unknown" (reportUnknownVariableType)
- .../projects/sympy/sympy/solvers/bivariate.py:134:14 - warning: Type of "subs" is unknown (reportUnknownMemberType)
+ .../projects/sympy/sympy/solvers/bivariate.py:134:14 - warning: Type of "subs" is partially unknown
+ Type of "subs" is "Unknown | Any | Overload[(arg1: Mapping[Basic | complex, Expr | complex], arg2: None = None) -> Expr, (arg1: Iterable[tuple[Basic | complex, Expr | complex]], arg2: None = None, **kwargs: Any) -> Expr, (arg1: Expr | complex, arg2: Expr | complex) -> Expr, (arg1: Mapping[Basic | complex, Basic | complex], arg2: None = None, **kwargs: Any) -> Basic, (arg1: Iterable[tuple[Basic | complex, Basic | complex]], arg2: None = None, **kwargs: Any) -> Basic, (arg1: Basic | complex, arg2: Basic | complex, **kwargs: Any) -> Basic]" (reportUnknownMemberType)
+ .../projects/sympy/sympy/solvers/bivariate.py:134:15 - error: Operator "-" not supported for "None" (reportOptionalOperand)
+ .../projects/sympy/sympy/solvers/bivariate.py:134:32 - warning: Argument type is partially unknown
+ Argument corresponds to parameter "arg1" in function "subs"
+ Argument type is "log | Any | Unknown" (reportUnknownArgumentType)
+ .../projects/sympy/sympy/solvers/bivariate.py:134:41 - warning: Argument type is partially unknown
+ Argument corresponds to parameter "arg2" in function "subs"
+ Argument type is "Expr | Any | Unknown" (reportUnknownArgumentType)
- Type of "args" is "Unknown" (reportUnknownMemberType)
+ Type of "args" is "tuple[Expr] | Any | Unknown" (reportUnknownMemberType)
- Type of "mainlog" is "Unknown" (reportUnknownVariableType)
+ Type of "mainlog" is "Expr | Any | Unknown" (reportUnknownVariableType)
- Type of "args" is "Unknown" (reportUnknownMemberType)
+ Type of "args" is "tuple[Expr] | Any | Unknown" (reportUnknownMemberType)
... (truncated 3913 lines) ...
|
writeBaseline, restartServer and createTypeStub commands only being registered in the vscode extension instead of the language serevr
writeBaseline, restartServer and createTypeStub commands only being registered in the vscode extension instead of the language serevrwriteBaseline, restartServer and createTypeStub commands only being registered in the vscode extension instead of the language server
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 #1381