-
Notifications
You must be signed in to change notification settings - Fork 28
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.383 #730
Merged
Merged
Merge 1.1.383 #730
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
…rst launched. Previously, a backoff timer of 250ms (which is intended only for user interactions) applied to startup.
… the import search paths were logged. Now the python version and python platform are also logged.
…ht: standard` directive. This addresses #9085.
Adds a counter for number of files seen. Only shows "too many files" error message if bigger than a given number (hardcoded to 50 same as number of seconds is hardcoded to 10). This avoids throwing the error suggesting opening a subfolder when the long operation time for directory reading is actually due to the number of files being read (as opposed to very large, very few files).
* Push pylance changes to pyright * Update jest.config.js
…h" for unary operators are applied to a TypeVar value that has a literal value upper bound. This addresses #9090. (#9094)
… of `Annotated`. This addresses #9092. (#9095)
* Fix release pipeline warnings. Specify exact targetPath of the files … (#9096) * realized the copy step was copying additional vsix files to build_output folder. Then the code signing check was complaining "build_output/gdn-vscode-pyright.vsix/..." https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=10276239&view=logs&j=2ea9903d-3972-52f8-7165-c7c73cff8483&t=7f83e459-ec8e-538a-5522-23f9d923a95c&l=14 * try additional targets https://devdiv.visualstudio.com/DevDiv/_wiki/wikis/DevDiv.wiki/43722/MicroBuild-Signing-and-1ES-PT-Code-Sign-Validation
…ts from an implicitly-imported module (e.g. `builtins` or `__builtins__.pyi`) so `Final` and `ClassVar` can be treated as special forms by the binder. This fixes the use of these typing symbols in notebooks within pylance, which leverages implicitly-imported modules to "chain together" notebook cells. This addresses #6455.
…ass pattern. This condition generates a runtime error. This addresses #9078.
…uaranteed not to have native libraries (e.g. web-based environments or playgrounds).
…improve startup performance.
…ic type aliases that use auto variance and nested callable types. (#9102) Added the ability to view inferred variance for type aliases created with a `type` statement by hovering over the type parameter declaration. This partly addresses #9081.
…zed recursive generic type alias to itself when variance of its type parameters are not covariant. This addresses #9081. (#9103)
…pt into some of the type evaluator modules. No functional change.
…o functional change.
…col matching for complex, nested protocols. This addresses #9109. (#9115)
…c type alias parameterized by a single ParamSpec. `Concatenate` was being handled incorrectly. This addresses #9088. (#9117)
…s variance inference for recursive type aliases. This addresses #9118. (#9119)
…fined with the expression `...`. This should be flagged as an illegal type expression. This addresses #9120. (#9123)
… type alias association in some circumstances. (#9127)
# Conflicts: # package-lock.json # package.json # packages/pyright-internal/package-lock.json # packages/pyright-internal/package.json # packages/pyright-internal/src/analyzer/service.ts # packages/pyright-internal/src/analyzer/typeEvaluator.ts # packages/pyright-internal/src/analyzer/typeEvaluatorTypes.ts # packages/pyright-internal/src/common/configOptions.ts # packages/pyright-internal/src/common/memUtils.ts # packages/pyright-internal/src/common/realFileSystem.ts # packages/pyright-internal/src/localization/package.nls.zh-cn.json # packages/pyright-internal/src/tests/harness/vfs/filesystem.ts # packages/pyright/package-lock.json # packages/pyright/package.json # packages/vscode-pyright/package-lock.json # packages/vscode-pyright/package.json
…sed more errors to be reported on invalid ones" guess the additional errors were a bug This reverts commit 09ec86c.
Diff from mypy_primer, showing the effect of this PR on open source code: pyinstrument (https://github.com/joerick/pyinstrument)
- /tmp/mypy_primer/projects/pyinstrument/pyinstrument/frame_ops.py
- /tmp/mypy_primer/projects/pyinstrument/pyinstrument/frame_ops.py:70:45 - error: "children" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/pyinstrument/pyinstrument/frame_ops.py:70:57 - error: "self_time" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/pyinstrument/pyinstrument/frame_ops.py:70:70 - error: "nothing" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/pyinstrument/pyinstrument/profiler.py:290:27 - error: "seconds" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/pyinstrument/pyinstrument/profiler.py:290:38 - error: "percent_of_total" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/pyinstrument/pyinstrument/profiler.py:330:27 - error: "seconds" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/pyinstrument/pyinstrument/profiler.py:330:38 - error: "percent_of_total" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/pyinstrument/pyinstrument/stack_sampler.py:315:24 - error: "in_context" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/pyinstrument/pyinstrument/stack_sampler.py:315:38 - error: "out_of_context_awaited" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/pyinstrument/pyinstrument/stack_sampler.py:315:64 - error: "out_of_context_unknown" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/pyinstrument/pyinstrument/renderers/console.py:35:27 - error: "seconds" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/pyinstrument/pyinstrument/renderers/console.py:35:38 - error: "percent_of_total" is not defined (reportUndefinedVariable)
- 1223 errors, 0 warnings, 0 notes
+ 1211 errors, 0 warnings, 0 notes
sympy (https://github.com/sympy/sympy)
- Type of "expand" is "Unknown | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any | Self@Expr))" (reportUnknownMemberType)
+ Type of "expand" is "Unknown | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any))" (reportUnknownMemberType)
- Type of "i_part" is "Unknown | Order | Any | Self@Expr" (reportUnknownVariableType)
+ Type of "i_part" is "Unknown | Order | Any" (reportUnknownVariableType)
- Type of "expand" is "Unknown | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any | Self@Expr)) | Any" (reportUnknownMemberType)
+ Type of "expand" is "Unknown | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any)) | Any" (reportUnknownMemberType)
- Type of "ivl" is "Unknown | Any" (reportUnknownVariableType)
+ Type of "ivl" is "Any | Unknown" (reportUnknownVariableType)
- Type of "as_set" is "Any | (() -> Unknown) | Unknown" (reportUnknownMemberType)
+ Type of "as_set" is "Any | Unknown" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/solvers.py:2788:21 - error: Type of "b" is partially unknown
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/solvers.py:2788:21 - error: Type of "b" is unknown (reportUnknownVariableType)
- Type of "b" is "Mul | Unknown | Integer | Expr" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/solvers.py:2788:24 - error: Type of "e" is partially unknown
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/solvers.py:2788:24 - error: Type of "e" is unknown (reportUnknownVariableType)
- Type of "e" is "Unknown | Expr | Mul | None" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/solvers.py:2788:28 - error: Type of "as_base_exp" is partially unknown
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/solvers.py:2788:28 - error: Type of "as_base_exp" is unknown (reportUnknownMemberType)
- Type of "as_base_exp" is "Unknown | (() -> (tuple[Mul, Unknown] | tuple[Mul, Expr | None])) | (() -> (tuple[Unknown | Integer, Unknown | Mul] | tuple[Expr, Expr])) | (() -> tuple[Expr, Expr])" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/solvers.py:2788:44 - error: "as_base_exp" is not a known attribute of "None" (reportOptionalMemberAccess)
- Type of "check" is "list[Unknown | Mul | Pow | Order | Expr | Add | None]" (reportUnknownVariableType)
+ Type of "check" is "list[Unknown]" (reportUnknownVariableType)
- Type of "extend" is "(iterable: Iterable[Unknown | Mul | Pow | Order | Expr | Add | None], /) -> None" (reportUnknownMemberType)
+ Type of "extend" is "(iterable: Iterable[Unknown], /) -> None" (reportUnknownMemberType)
- Type of "extend" is "(iterable: Iterable[Unknown | Mul | Pow | Order | Expr | Add | None], /) -> None" (reportUnknownMemberType)
+ Type of "extend" is "(iterable: Iterable[Unknown], /) -> None" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/solvers.py:2793:21 - error: Type of "s" is partially unknown
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/solvers.py:2793:21 - error: Type of "s" is unknown (reportUnknownVariableType)
- Type of "s" is "Unknown | Mul | Pow | Order | Expr | Add | None" (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/solvers.py:2794:44 - error: Argument type is unknown
+ Argument corresponds to parameter "sol" in function "checksol" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/solvers.py:2798:36 - error: Argument type is unknown
+ Argument corresponds to parameter "object" in function "append" (reportUnknownArgumentType)
- Type of "g" is "Unknown | Order | Any | Self@Expr" (reportUnknownVariableType)
+ Type of "g" is "Unknown | Order | Any" (reportUnknownVariableType)
- Type of "h" is "Unknown | Order | Any | Self@Expr" (reportUnknownVariableType)
+ Type of "h" is "Unknown | Order | Any" (reportUnknownVariableType)
- Type of "expand" is "Unknown | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any | Self@Expr))" (reportUnknownMemberType)
+ Type of "expand" is "Unknown | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any))" (reportUnknownMemberType)
- Type of "expand" is "Unknown | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any | Self@Expr))" (reportUnknownMemberType)
+ Type of "expand" is "Unknown | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any))" (reportUnknownMemberType)
- Type of "g" is "Unknown | Order | Basic | Self@Expr | Any" (reportUnknownVariableType)
+ Type of "g" is "Unknown | Order | Basic | Any" (reportUnknownVariableType)
- Type of "h" is "Unknown | Order | Basic | Self@Expr | Any" (reportUnknownVariableType)
+ Type of "h" is "Unknown | Order | Basic | Any" (reportUnknownVariableType)
- Type of "subs" is "Unknown | ((...) -> (Unknown | Order | Basic)) | Any | ((...) -> (Unknown | Self@Expr | Basic))" (reportUnknownMemberType)
+ Type of "subs" is "Unknown | ((...) -> (Unknown | Order | Basic)) | Any" (reportUnknownMemberType)
- Type of "subs" is "Unknown | ((...) -> (Unknown | Order | Basic)) | Any | ((...) -> (Unknown | Self@Expr | Basic))" (reportUnknownMemberType)
+ Type of "subs" is "Unknown | ((...) -> (Unknown | Order | Basic)) | Any" (reportUnknownMemberType)
- Type of "g" is "Unknown | Order | Any | Self@Expr" (reportUnknownVariableType)
+ Type of "g" is "Unknown | Order | Any" (reportUnknownVariableType)
- Type of "h" is "Unknown | Order | Any | Self@Expr" (reportUnknownVariableType)
+ Type of "h" is "Unknown | Order | Any" (reportUnknownVariableType)
- Type of "expand" is "Unknown | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any | Self@Expr))" (reportUnknownMemberType)
+ Type of "expand" is "Unknown | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any))" (reportUnknownMemberType)
- Type of "expand" is "Unknown | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any | Self@Expr))" (reportUnknownMemberType)
+ Type of "expand" is "Unknown | ((deep: bool = True, modulus: Unknown | None = None, power_base: bool = True, power_exp: bool = True, mul: bool = True, log: bool = True, multinomial: bool = True, basic: bool = True, **hints: Unknown) -> (Unknown | Order | Any))" (reportUnknownMemberType)
- Type of "g" is "Unknown | Order | Basic | Self@Expr | Any" (reportUnknownVariableType)
+ Type of "g" is "Unknown | Order | Basic | Any" (reportUnknownVariableType)
- Type of "h" is "Unknown | Order | Basic | Self@Expr | Any" (reportUnknownVariableType)
+ Type of "h" is "Unknown | Order | Basic | Any" (reportUnknownVariableType)
- Type of "subs" is "Unknown | ((...) -> (Unknown | Order | Basic)) | Any | ((...) -> (Unknown | Self@Expr | Basic))" (reportUnknownMemberType)
+ Type of "subs" is "Unknown | ((...) -> (Unknown | Order | Basic)) | Any" (reportUnknownMemberType)
- Type of "subs" is "Unknown | ((...) -> (Unknown | Order | Basic)) | Any | ((...) -> (Unknown | Self@Expr | Basic))" (reportUnknownMemberType)
+ Type of "subs" is "Unknown | ((...) -> (Unknown | Order | Basic)) | Any" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/sympy/sympy/solvers/solveset.py:1012:12 - error: Operator ">" not supported for types "Any | type[Unknown] | type[Order] | type[Basic] | type[Self@Expr]" and "Any | type[Unknown] | type[Order] | type[Basic] | type[Self@Expr]"
+ /tmp/mypy_primer/projects/sympy/sympy/solvers/solveset.py:1012:12 - error: Operator ">" not supported for types "Any | type[Unknown] | type[Order] | type[Basic]" and "Any | type[Unknown] | type[Order] | type[Basic]"
- Operator ">" not supported for types "type[Unknown]" and "type[Expr]*"
+ Operator ">" not supported for types "type[Basic]" and "type[Unknown]"
- Operator ">" not supported for types "type[Order]" and "type[Expr]*"
+ Operator ">" not supported for types "type[Basic]" and "type[Order]"
- Argument type is "Unknown | Order | Basic | Self@Expr | Any" (reportUnknownArgumentType)
... (truncated 4075 lines) ...
core (https://github.com/home-assistant/core)
+ /tmp/mypy_primer/projects/core/homeassistant/components/alexa/handlers.py:562:5 - error: Type of "volume" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/alexa/handlers.py:562:14 - error: No overloads for "round" match the provided arguments (reportCallIssue)
+ /tmp/mypy_primer/projects/core/homeassistant/components/backup/manager.py:147:34 - error: No overloads for "round" match the provided arguments (reportCallIssue)
+ /tmp/mypy_primer/projects/core/homeassistant/components/backup/manager.py:147:34 - error: Argument type is unknown
+ Argument corresponds to parameter "size" in function "__init__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/backup/manager.py:224:22 - error: No overloads for "round" match the provided arguments (reportCallIssue)
+ /tmp/mypy_primer/projects/core/homeassistant/components/backup/manager.py:224:22 - error: Argument type is unknown
+ Argument corresponds to parameter "size" in function "__init__" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/backup/manager.py:224:55 - error: Argument of type "Literal[2]" cannot be assigned to parameter "ndigits" of type "None" in function "round"
+ "Literal[2]" is not assignable to "None" (reportArgumentType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/bayesian/binary_sensor.py:565:31 - error: No overloads for "round" match the provided arguments (reportCallIssue)
+ /tmp/mypy_primer/projects/core/homeassistant/components/bayesian/binary_sensor.py:565:55 - error: Argument of type "Literal[2]" cannot be assigned to parameter "ndigits" of type "None" in function "round"
+ "Literal[2]" is not assignable to "None" (reportArgumentType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/coinbase/sensor.py:129:13 - error: Type of "_native_balance" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/coinbase/sensor.py:129:36 - error: No overloads for "round" match the provided arguments (reportCallIssue)
+ /tmp/mypy_primer/projects/core/homeassistant/components/coinbase/sensor.py:132:17 - error: Argument of type "Literal[2]" cannot be assigned to parameter "ndigits" of type "None" in function "round"
+ "Literal[2]" is not assignable to "None" (reportArgumentType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/coinbase/sensor.py:149:37 - error: Type of "_native_balance" is partially unknown
+ Type of "_native_balance" is "Unknown | float" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/dovado/sensor.py:117:9 - error: Return type, "str | Any | int | float | Unknown | None", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/dovado/sensor.py:117:9 - error: Return type, "str | Any | int | Unknown | None", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/dovado/sensor.py:132:20 - error: No overloads for "round" match the provided arguments (reportCallIssue)
+ /tmp/mypy_primer/projects/core/homeassistant/components/dovado/sensor.py:132:20 - error: Return type is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/geonetnz_volcano/sensor.py:113:13 - error: Type of "_distance" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/geonetnz_volcano/sensor.py:113:30 - error: No overloads for "round" match the provided arguments (reportCallIssue)
+ /tmp/mypy_primer/projects/core/homeassistant/components/geonetnz_volcano/sensor.py:119:17 - error: Argument of type "Literal[1]" cannot be assigned to parameter "ndigits" of type "None" in function "round"
+ "Literal[1]" is not assignable to "None" (reportArgumentType)
- /tmp/mypy_primer/projects/core/homeassistant/components/geonetnz_volcano/sensor.py:155:9 - error: Return type, "dict[str, Unknown | float | datetime | bool]", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/geonetnz_volcano/sensor.py:155:9 - error: Return type, "dict[str, Unknown | datetime | bool]", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/core/homeassistant/components/geonetnz_volcano/sensor.py:157:16 - error: Return type, "dict[str, Unknown | float | datetime | bool]", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/geonetnz_volcano/sensor.py:157:16 - error: Return type, "dict[str, Unknown | datetime | bool]", is partially unknown (reportUnknownVariableType)
- Type of "value" is "Unknown | float | datetime | None" (reportUnknownVariableType)
+ Type of "value" is "Unknown | datetime | None" (reportUnknownVariableType)
- Type of "_distance" is "float | Unknown | None" (reportUnknownMemberType)
+ Type of "_distance" is "Unknown | None" (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/number/__init__.py:400:59 - error: Argument of type "Overload[(number: _SupportsRound1[_T@round], ndigits: None = None) -> _T@round, (number: _SupportsRound2[_T@round], ndigits: SupportsIndex) -> _T@round]" cannot be assigned to parameter "method" of type "(float, int) -> float" in function "_convert_to_state_value"
+ No overloaded function matches type "(float, int) -> float" (reportArgumentType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/overkiz/sensor.py:287:36 - error: No overloads for "round" match the provided arguments (reportCallIssue)
+ /tmp/mypy_primer/projects/core/homeassistant/components/overkiz/sensor.py:287:36 - error: Return type of lambda is unknown (reportUnknownLambdaType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/overkiz/sensor.py:287:62 - error: Argument of type "Literal[2]" cannot be assigned to parameter "ndigits" of type "None" in function "round"
+ "Literal[2]" is not assignable to "None" (reportArgumentType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/tellduslive/sensor.py:167:9 - error: Return type is unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/tellduslive/sensor.py:169:16 - error: No overloads for "round" match the provided arguments (reportCallIssue)
+ /tmp/mypy_primer/projects/core/homeassistant/components/tellduslive/sensor.py:169:16 - error: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/core/homeassistant/components/tellduslive/sensor.py:182:9 - error: Return type, "float | int | Unknown | None", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/tellduslive/sensor.py:182:9 - error: Return type, "Unknown | int | float | None", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/tellduslive/sensor.py:187:20 - error: Type of "_value_as_temperature" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/core/homeassistant/components/tellduslive/sensor.py:187:20 - error: Return type is unknown (reportUnknownVariableType)
- 316044 errors, 0 warnings, 0 notes
+ 316071 errors, 0 warnings, 0 notes
werkzeug (https://github.com/pallets/werkzeug)
+ /tmp/mypy_primer/projects/werkzeug/src/werkzeug/wrappers/response.py:637:29 - error: Cannot assign to attribute "response" for class "Response*"
+ Type "_RangeWrapper" is not assignable to type "Iterable[str] | Iterable[bytes]"
+ "_RangeWrapper" is incompatible with protocol "Iterable[str]"
+ "__iter__" is an incompatible type
+ Type "() -> _RangeWrapper" is not assignable to type "() -> Iterator[_T_co@Iterable]"
+ Function return type "_RangeWrapper" is incompatible with type "Iterator[_T_co@Iterable]"
+ "_RangeWrapper" is incompatible with protocol "Iterable[bytes]"
+ "__iter__" is an incompatible type
+ Type "() -> _RangeWrapper" is not assignable to type "() -> Iterator[_T_co@Iterable]"
+ ... (reportAttributeAccessIssue)
- 3393 errors, 0 warnings, 0 notes
+ 3394 errors, 0 warnings, 0 notes
spark (https://github.com/apache/spark)
- /tmp/mypy_primer/projects/spark/python/pyspark/pandas/tests/test_categorical.py:418:43 - error: "a" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/spark/python/pyspark/pandas/tests/test_categorical.py:418:52 - error: "b" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/spark/python/pyspark/pandas/tests/test_categorical.py:478:43 - error: "a" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/spark/python/pyspark/pandas/tests/test_categorical.py:478:52 - error: "b" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/spark/python/pyspark/pandas/tests/test_typedef.py:170:38 - error: "a" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/spark/python/pyspark/pandas/tests/test_typedef.py:170:56 - error: "b" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/spark/python/pyspark/pandas/tests/test_typedef.py:178:38 - error: "a" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/spark/python/pyspark/pandas/tests/test_typedef.py:178:50 - error: "b" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/spark/python/pyspark/pandas/tests/test_typedef.py:220:39 - error: "a" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/spark/python/pyspark/pandas/tests/test_typedef.py:220:61 - error: "b" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/spark/python/pyspark/pandas/tests/test_typedef.py:239:39 - error: "a" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/spark/python/pyspark/pandas/tests/test_typedef.py:239:56 - error: "b" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/spark/python/pyspark/pandas/tests/test_typedef.py:267:39 - error: "a" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/spark/python/pyspark/pandas/tests/test_typedef.py:267:56 - error: "b" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/spark/python/pyspark/pandas/tests/test_typedef.py:286:39 - error: "a" is not defined (reportUndefinedVariable)
- /tmp/mypy_primer/projects/spark/python/pyspark/pandas/tests/test_typedef.py:286:61 - error: "b" is not defined (reportUndefinedVariable)
- "__next__" is not present (reportArgumentType)
+ "__next__" is not present
+ Could not bind method "__iter__" because "str" is not assignable to parameter "self"
+ "str" is not assignable to "LiteralString" (reportArgumentType)
- "__next__" is not present (reportArgumentType)
+ "__next__" is not present
+ Could not bind method "__iter__" because "str" is not assignable to parameter "self"
+ "str" is not assignable to "LiteralString" (reportArgumentType)
+ Could not bind method "__iter__" because "str" is not assignable to parameter "self"
+ "str" is not assignable to "LiteralString"
- No overloaded function matches type "() -> Iterator[_T_co@Iterator]" (reportArgumentType)
+ Type "() -> Iterator[str]" is not assignable to type "() -> Iterator[_T_co@Iterator]"
+ Function return type "Iterator[str]" is incompatible with type "Iterator[_T_co@Iterator]" (reportArgumentType)
+ Could not bind method "__iter__" because "str" is not assignable to parameter "self"
+ "str" is not assignable to "LiteralString"
- No overloaded function matches type "() -> Iterator[_T_co@Iterator]" (reportArgumentType)
+ Type "() -> Iterator[str]" is not assignable to type "() -> Iterator[_T_co@Iterator]"
+ Function return type "Iterator[str]" is incompatible with type "Iterator[_T_co@Iterator]" (reportArgumentType)
- 154396 errors, 0 warnings, 0 notes
+ 154380 errors, 0 warnings, 0 notes
spack (https://github.com/spack/spack)
- /tmp/mypy_primer/projects/spack/var/spack/repos/builtin/packages/xfindproxy/package.py:22: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/xfindproxy/package.py:22: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/xfindproxy/package.py:24: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/xfindproxy/package.py:24: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/xfindproxy/package.py:25: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/xfindproxy/package.py:25: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/xfindproxy/package.py:27: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/xfindproxy/package.py:27: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/xfindproxy/package.py:28: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/xfindproxy/package.py:28: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/xfindproxy/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/xfindproxy/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/xfindproxy/package.py:30: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/xfindproxy/package.py:30: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/xfontsel/package.py:23: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/xfontsel/package.py:23: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/xfontsel/package.py:25: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/xfontsel/package.py:25: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/xfontsel/package.py:26: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/xfontsel/package.py:26: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/xfontsel/package.py:27: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/xfontsel/package.py:27:5 - error: Result of call expression is of type "((pkg: PackageBase) -> None)" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
... (truncated 119 lines) ...``` |
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.
reportInvalidTypeForm
false positive on type alias toNever
#490