-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
addressed in next versionIssue is fixed and will appear in next published versionIssue is fixed and will appear in next published versionbugSomething isn't workingSomething isn't working
Description
Describe the bug
Latest version of Pyright reports this error
/code/.debug/foo/bar.py
/code/.debug/foo/bar.py:10:13 - error: Argument type is partially unknown
Argument corresponds to parameter "__iterable" in function "sum"
Argument type is "Generator[Unknown, None, None]" (reportUnknownArgumentType)
This error wasn't reported on v1.1.341
Code or Screenshots
# /code/.debug/foo/bar.py
# pyright: strict
from __future__ import annotations
def get_value(x: int) -> int | None:
...
value = sum(max(value for x in range(10) if (value := get_value(x)) is not None) for _ in range(10))VS Code extension or command-line
Pyright: 1.1.346
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
addressed in next versionIssue is fixed and will appear in next published versionIssue is fixed and will appear in next published versionbugSomething isn't workingSomething isn't working