-
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 versionenhancement requestNew feature or requestNew feature or request
Description
Currently pyright doesn't enforce the "send" type for generators when a yield from statement is used.
from typing import Generator
def func1() -> Generator[None, int, None]:
x: int = yield
def func2() -> Generator[None, str, None]:
yield from func1()This is related to mypy issue python/mypy#14834.
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 versionenhancement requestNew feature or requestNew feature or request