Skip to content

Commit 3c63582

Browse files
committed
Use generator for contextmanager
1 parent 4740d32 commit 3c63582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/contextlib.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class _GeneratorContextManager(AbstractContextManager[_T_co, bool | None], Conte
7474
self, type: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None
7575
) -> bool | None: ...
7676

77-
def contextmanager(func: Callable[_P, Iterator[_T_co]]) -> Callable[_P, _GeneratorContextManager[_T_co]]: ...
77+
def contextmanager(func: Callable[_P, Generator[_T_co]]) -> Callable[_P, _GeneratorContextManager[_T_co]]: ...
7878

7979
if sys.version_info >= (3, 10):
8080
_AF = TypeVar("_AF", bound=Callable[..., Awaitable[Any]])

0 commit comments

Comments
 (0)