Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed Jan 4, 2024
1 parent e927f74 commit 60d37a6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ragna/_compat.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import builtins
import sys
from typing import AsyncIterator, Callable, Iterable, Iterator, Mapping, TypeVar
from typing import (
AsyncIterator,
Awaitable,
Callable,
Iterable,
Iterator,
Mapping,
TypeVar,
)

__all__ = ["itertools_pairwise", "importlib_metadata_package_distributions", "anext"]

Expand Down Expand Up @@ -41,7 +49,7 @@ def _importlib_metadata_package_distributions() -> (
importlib_metadata_package_distributions = _importlib_metadata_package_distributions()


def _anext() -> Callable[[AsyncIterator[T]], T]:
def _anext() -> Callable[[AsyncIterator[T]], Awaitable[T]]:
if sys.version_info[:2] >= (3, 10):
anext = builtins.anext
else:
Expand Down

0 comments on commit 60d37a6

Please sign in to comment.