Fix several methods that should be async def, but aren't (#7107)

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-02-02 15:18:14 +01:00
1 parent 1b99812621
commit 584336a41e
4 files changed
+18 -18

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ import ctypes
import mmap
import sys
from os import PathLike
from typing import AbstractSet, Any, Awaitable, Container, Generic, Iterable, Protocol, TypeVar, Union
from typing import AbstractSet, Any, Container, Generic, Iterable, Protocol, TypeVar, Union
from typing_extensions import Final, Literal, final
_KT = TypeVar("_KT")
@@ -33,7 +33,7 @@ class SupportsNext(Protocol[_T_co]):
# stable
class SupportsAnext(Protocol[_T_co]):
def __anext__(self) -> Awaitable[_T_co]: ...
async def __anext__(self) -> _T_co: ...
# Comparison protocols