Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 6, 2025
1 parent a3908e6 commit 0100f14
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/source/common_issues.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down

0 comments on commit 0100f14

Please sign in to comment.