From 0100f142b523f53232aafac444d7df3abee889fd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 10:04:13 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/source/common_issues.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/source/common_issues.rst b/docs/source/common_issues.rst index c04c0df64855..d617684638c5 100644 --- a/docs/source/common_issues.rst +++ b/docs/source/common_issues.rst @@ -856,19 +856,19 @@ generator function (https://peps.python.org/pep-0255/#specification-yield). .. code-block:: python from collections.abc import Generator, AsyncGenerator - + async def async_gen() -> AsyncGenerator[int]: yield 1 - + def gen() -> Generator[int]: yield 1 - + async def async_func() -> int: return 1 - + def func() -> int: return 1 - + reveal_type(async_gen()) # AsyncGenerator[int, None] reveal_type(gen()) # Generator[int, None, None] reveal_type(async_func()) # Coroutine[Any, Any, int] @@ -887,7 +887,7 @@ does not meet the expectation (generator type). .. code-block:: python from collections.abc import Generator - + def gen() -> Generator[int]: ... # error: Missing return statement