__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import weakref
from collections.abc import Callable, Iterable, Sequence
from types import FrameType, TracebackType
from typing import Any, ClassVar, Generic, TypeVar, overload
from typing_extensions import ParamSpec, Self
import greenlet
from gevent._types import _Loop
from gevent._util import readproperty
_T = TypeVar("_T")
_G = TypeVar("_G", bound=greenlet.greenlet)
_P = ParamSpec("_P")
class Greenlet(greenlet.greenlet, Generic[_P, _T]):
# we can't use _P.args/_P.kwargs here because pyright will complain
# mypy doesn't seem to mind though
args: tuple[Any, ...]
kwargs: dict[str, Any]
value: _T | None
@overload
def __init__(
self: Greenlet[_P, _T], # pyright: ignore[reportInvalidTypeVarUse] #11780
run: Callable[_P, _T],
*args: _P.args,
**kwargs: _P.kwargs,
) -> None: ...
@overload
def __init__(self: Greenlet[[], None]) -> None: ...
@readproperty
def name(self) -> str: ...
@property
def minimal_ident(self) -> int: ...
@property
def loop(self) -> _Loop: ...
@property
def dead(self) -> bool: ...
@property
def started(self) -> bool: ...
@property
def exception(self) -> BaseException | None: ...
@property
def exc_info(self) -> tuple[type[BaseException], BaseException, TracebackType | None] | None: ...
@staticmethod
def add_spawn_callback(callback: Callable[[Greenlet[..., Any]], object]) -> None: ...
@staticmethod
def remove_spawn_callback(callback: Callable[[Greenlet[..., Any]], object]) -> None: ...
def get(self, block: bool = True, timeout: float | None = None) -> _T: ...
def has_links(self) -> bool: ...
def join(self, timeout: float | None = None) -> None: ...
def kill(
self, exception: type[BaseException] | BaseException = ..., block: bool = True, timeout: float | None = None
) -> None: ...
def link(self, callback: Callable[[Self], object]) -> None: ...
def link_exception(self, callback: Callable[[Self], object]) -> None: ...
def link_value(self, callback: Callable[[Self], object]) -> None: ...
def rawlink(self, callback: Callable[[Self], object]) -> None: ...
def unlink(self, callback: Callable[[Self], Any]) -> None: ...
def unlink_all(self) -> None: ...
def ready(self) -> bool: ...
def run(self) -> Any: ...
@overload
@classmethod
def spawn(cls, run: Callable[_P, _T], /, *args: _P.args, **kwargs: _P.kwargs) -> Self: ...
@overload
@classmethod
def spawn(cls) -> Greenlet[[], None]: ...
@overload
@classmethod
def spawn_later(cls, seconds: float, run: Callable[_P, _T], *args: _P.args, **kwargs: _P.kwargs) -> Self: ...
@overload
@classmethod
def spawn_later(cls, seconds: float) -> Greenlet[[], None]: ...
def start(self) -> None: ...
def start_later(self, seconds: float) -> None: ...
def successful(self) -> bool: ...
def __bool__(self) -> bool: ...
def __enter__(self) -> Self: ...
def __exit__(self, t: type[BaseException] | None, v: BaseException | None, tb: TracebackType | None) -> None: ...
# since these are for instrumentation which is disabled by default, we could
# consider just not annotating them...
spawning_stack_limit: ClassVar[int]
spawn_tree_locals: dict[str, Any] | None
spawning_greenlet: weakref.ref[greenlet.greenlet] | None
# not quite accurate, since it may be an internal dummy type instead
# but since it has all the same fields as FrameType we shouldn't care
spawning_stack: FrameType | None
def joinall(
greenlets: Sequence[_G], timeout: float | None = None, raise_error: bool = False, count: int | None = None
) -> list[_G]: ...
def killall(
greenlets: Iterable[greenlet.greenlet],
exception: type[BaseException] | BaseException = ...,
block: bool = True,
timeout: float | None = None,
) -> None: ...
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| _ffi | Folder | 0755 |
|
|
| libev | Folder | 0755 |
|
|
| libuv | Folder | 0755 |
|
|
| monkey | Folder | 0755 |
|
|
| resolver | Folder | 0755 |
|
|
| __init__.pyi | File | 1.69 KB | 0644 |
|
| _abstract_linkable.pyi | File | 452 B | 0644 |
|
| _config.pyi | File | 6.16 KB | 0644 |
|
| _fileobjectcommon.pyi | File | 11.49 KB | 0644 |
|
| _greenlet_primitives.pyi | File | 427 B | 0644 |
|
| _hub_local.pyi | File | 469 B | 0644 |
|
| _hub_primitives.pyi | File | 3 KB | 0644 |
|
| _ident.pyi | File | 251 B | 0644 |
|
| _imap.pyi | File | 1000 B | 0644 |
|
| _monitor.pyi | File | 2.03 KB | 0644 |
|
| _threading.pyi | File | 644 B | 0644 |
|
| _types.pyi | File | 6.68 KB | 0644 |
|
| _util.pyi | File | 2.01 KB | 0644 |
|
| _waiter.pyi | File | 1.61 KB | 0644 |
|
| ares.pyi | File | 36 B | 0644 |
|
| backdoor.pyi | File | 1.42 KB | 0644 |
|
| baseserver.pyi | File | 2.45 KB | 0644 |
|
| event.pyi | File | 2.75 KB | 0644 |
|
| events.pyi | File | 5.44 KB | 0644 |
|
| exceptions.pyi | File | 450 B | 0644 |
|
| fileobject.pyi | File | 5.62 KB | 0644 |
|
| greenlet.pyi | File | 3.81 KB | 0644 |
|
| hub.pyi | File | 4.05 KB | 0644 |
|
| local.pyi | File | 343 B | 0644 |
|
| lock.pyi | File | 1.81 KB | 0644 |
|
| os.pyi | File | 1.09 KB | 0644 |
|
| pool.pyi | File | 7.47 KB | 0644 |
|
| py.typed | File | 0 B | 0644 |
|
| pywsgi.pyi | File | 6.51 KB | 0644 |
|
| queue.pyi | File | 3.59 KB | 0644 |
|
| resolver_ares.pyi | File | 35 B | 0644 |
|
| resolver_thread.pyi | File | 37 B | 0644 |
|
| select.pyi | File | 414 B | 0644 |
|
| selectors.pyi | File | 1.07 KB | 0644 |
|
| server.pyi | File | 3.16 KB | 0644 |
|
| signal.pyi | File | 515 B | 0644 |
|
| socket.pyi | File | 1.09 KB | 0644 |
|
| ssl.pyi | File | 1.27 KB | 0644 |
|
| subprocess.pyi | File | 168 B | 0644 |
|
| threadpool.pyi | File | 2.02 KB | 0644 |
|
| time.pyi | File | 59 B | 0644 |
|
| timeout.pyi | File | 1.87 KB | 0644 |
|
| util.pyi | File | 1.87 KB | 0644 |
|
| win32util.pyi | File | 75 B | 0644 |
|