-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
32 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
import sys | ||
from collections.abc import Iterable | ||
from typing import ClassVar, Literal, NoReturn | ||
|
||
class Quitter: | ||
name: str | ||
eof: str | ||
def __init__(self, name: str, eof: str) -> None: ... | ||
def __call__(self, code: int | None = None) -> NoReturn: ... | ||
def __call__(self, code: sys._ExitCode = None) -> NoReturn: ... | ||
|
||
class _Printer: | ||
MAXLINES: ClassVar[Literal[23]] | ||
def __init__(self, name: str, data: str, files: Iterable[str] = (), dirs: Iterable[str] = ()) -> None: ... | ||
def __call__(self) -> None: ... | ||
|
||
class _Helper: | ||
def __call__(self, request: object) -> None: ... | ||
def __call__(self, request: object = ...) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import selectors | ||
from socket import socket | ||
|
||
from . import base_events | ||
|
||
__all__ = ("BaseSelectorEventLoop",) | ||
|
||
class BaseSelectorEventLoop(base_events.BaseEventLoop): | ||
def __init__(self, selector: selectors.BaseSelector | None = None) -> None: ... | ||
async def sock_recv(self, sock: socket, n: int) -> bytes: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters