Skip to content

Commit

Permalink
review src/typings/netius/base/async_neo.pyi
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-gomes committed Dec 14, 2023
1 parent 9f96e60 commit 58012d5
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions src/typings/netius/base/async_neo.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,44 @@ import netius.base.async_old
import netius.base.async_old as async_old
import netius.base.errors as errors
import netius.base.legacy as legacy
from _typeshed import Incomplete
from typing import ClassVar

__version__: str
__revision__: str
__date__: str
from typing import ClassVar, Any, Generator, Tuple, Union, Callable, Optional, Type, ModuleType

class Future(netius.base.async_old.Future):
def __iter__(self): ...
def __await__(self): ...
def __iter__(self) -> Future: ...
def __await__(self) -> Generator[None, None, Any]: ...

class Future:
def __iter__(self) -> Future: ...
def __await__(self) -> Generator[None, None, Any]: ...

class AwaitWrapper:
_is_generator: ClassVar[bool] = ...
def __init__(self, generator, generate: bool = ...) -> None: ...
def __await__(self): ...
def __iter__(self): ...
def __next__(self): ...
def next(self): ...
def generate(self, value): ...
def _await_generator(self): ...
def _await_basic(self): ...
def __init__(self, generator: Generator, generate: bool = ...) -> None: ...
def __await__(self)-> (Generator[Any, Any, Any | None] | Generator[None, Any, Generator[Any, Any, None] | Any]): ...
def __iter__(self) -> AwaitWrapper: ...
def __next__(self) -> Any: ...
def next(self) -> Any: ...
def generate(self, value: Any) -> Generator[Any, Any, None]: ...
def _await_generator(self) -> Generator[Any, Any, Any | None]: ...
def _await_basic(self) -> Generator[None, Any, Generator[Any, Any, None] | Any]: ...

class CoroutineWrapper:
def __init__(self, coroutine) -> None: ...
def __iter__(self): ...
def __next__(self): ...
def next(self): ...
def restore(self, value): ...
def coroutine(function): ...
def ensure_generator(value): ...
def get_asyncio(): ...
def is_coroutine(callable): ...
def is_coroutine_object(generator): ...
def is_coroutine_native(generator): ...
def is_future(future): ...
def _sleep(timeout, compat: bool = ...): ...
def _wait(event, timeout: Incomplete | None = ..., future: Incomplete | None = ...): ...
def sleep(*args, **kwargs): ...
def wait(*args, **kwargs): ...
def coroutine_return(coroutine): ...
def _coroutine_return(coroutine): ...
def __init__(self, coroutine: Generator) -> None: ...
def __iter__(self) -> CoroutineWrapper: ...
def __next__(self) -> Any: ...
def next(self) -> Any: ...
def restore(self, value: Any) -> None: ...

def coroutine(function: Callable) -> Callable: ...
def ensure_generator(value: Any) -> Tuple[bool, Union[Generator, CoroutineWrapper, Any]]: ...
def get_asyncio() -> Optional[Type[ModuleType]]: ...
def is_coroutine(callable: Callable) -> bool: ...
def is_coroutine_object(generator: Any) -> bool: ...
def is_coroutine_native(generator: Any) -> bool: ...
def is_future(future: Any) -> bool: ...
def _sleep(timeout: float, compat: bool = ...) -> Generator: ...
def _wait(event: Any, timeout: Optional[float] = ..., future: Any = ...) -> AwaitWrapper: ...
def sleep(*args, **kwargs) -> AwaitWrapper: ...
def wait(*args, **kwargs) -> AwaitWrapper: ...
def coroutine_return(coroutine: CoroutineWrapper) -> AwaitWrapper: ...
def _coroutine_return(coroutine: CoroutineWrapper) -> Generator[Any, None, Any]: ...

0 comments on commit 58012d5

Please sign in to comment.