Skip to content

Commit 14337eb

Browse files
authored
fix: gi_yieldfrom can be any iterator type being yielded from (#14334)
1 parent d3cfe67 commit 14337eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/types.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ class GeneratorType(Generator[_YieldT_co, _SendT_contra, _ReturnT_co]):
388388
@property
389389
def gi_running(self) -> bool: ...
390390
@property
391-
def gi_yieldfrom(self) -> GeneratorType[_YieldT_co, _SendT_contra, Any] | None: ...
391+
def gi_yieldfrom(self) -> Iterator[_YieldT_co] | None: ...
392392
if sys.version_info >= (3, 11):
393393
@property
394394
def gi_suspended(self) -> bool: ...

0 commit comments

Comments
 (0)