-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change Any to Incomplete (for some unkhown reason)
- Loading branch information
1 parent
ce0d9fa
commit 0460e9f
Showing
5 changed files
with
36 additions
and
34 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
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,28 +1,27 @@ | ||
from _typeshed import Incomplete | ||
from collections.abc import Generator | ||
from re import Pattern | ||
from typing import Any, Literal | ||
from typing import Literal | ||
|
||
from ijson import common | ||
|
||
inf = float("inf") | ||
LEXEME_RE: Pattern[str] | ||
UNARY_LEXEMES: set[str] | ||
EOF: tuple[Literal[-1], None] | ||
|
||
class UnexpectedSymbol(common.JSONError): | ||
def __init__(self, symbol: str, pos: int) -> None: ... | ||
|
||
def utf8_encoder(target: Any) -> Generator[None, bytes]: ... | ||
def Lexer(target: Generator[Any, bytes]) -> Generator[None, tuple[int, str]]: ... | ||
|
||
inf = float("inf") | ||
|
||
def utf8_encoder(target: Incomplete) -> Generator[None, bytes]: ... | ||
def Lexer(target: Generator[Incomplete, bytes]) -> Generator[None, tuple[int, str]]: ... | ||
def parse_value( | ||
target: Generator[Any, tuple[str, object]], multivalue: bool, use_float: bool | ||
target: Generator[Incomplete, tuple[str, object]], multivalue: bool, use_float: bool | ||
) -> Generator[None, tuple[int, str | None]]: ... | ||
def parse_string(symbol: str) -> str: ... | ||
def basic_parse_basecoro( | ||
target: Generator[None, tuple[int, str | None]], | ||
multiple_values: bool = False, | ||
allow_comments: bool = False, | ||
use_float: bool = False, | ||
): ... | ||
) -> Generator[None, 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
from _typeshed import Incomplete, ReadableBuffer, SupportsRead | ||
from collections.abc import Callable, Generator, Iterable, MutableMapping | ||
from decimal import Decimal | ||
from typing import Any | ||
from typing_extensions import TypeGuard | ||
|
||
class JSONError(Exception): ... | ||
class IncompleteJSONError(JSONError): ... | ||
|
||
def parse_basecoro(target: Generator[Any, tuple[str, str, Any]]) -> Generator[None, None, None]: ... | ||
def parse_basecoro(target: Generator[Incomplete, tuple[str, str, Incomplete]]) -> Generator[None, None, None]: ... | ||
|
||
class ObjectBuilder: | ||
value: Any | ||
value: Incomplete | ||
containers: list[Callable[[object], object]] | ||
map_type: type[MutableMapping[Any, Any]] | ||
def __init__(self, map_type: type[MutableMapping[Any, Any]] | None = None) -> None: ... | ||
key: Any | ||
def event(self, event: str, value: Any) -> None: ... | ||
map_type: type[MutableMapping[Incomplete, Incomplete]] | ||
def __init__(self, map_type: type[MutableMapping[Incomplete, Incomplete]] | None = None) -> None: ... | ||
key: Incomplete | ||
def event(self, event: str, value: Incomplete) -> None: ... | ||
|
||
def items_basecoro(target, prefix, map_type: Incomplete | None = None) -> Generator[None, Incomplete]: ... | ||
def items_basecoro( | ||
target: Generator[object, tuple[Incomplete, str, object]], prefix: Incomplete, map_type: Incomplete | None = None | ||
) -> Generator[None, Incomplete]: ... | ||
def kvitems_basecoro(target, prefix, map_type: Incomplete | None = None) -> Generator[None, Incomplete]: ... | ||
def integer_or_decimal(str_value: str): ... | ||
def integer_or_float(str_value: str) -> Decimal | int: ... | ||
def number(str_value: str) -> int | float: ... | ||
def file_source(f: SupportsRead[str] | SupportsRead[ReadableBuffer], buf_size: int = 65536) -> Generator[bytes]: ... | ||
def is_awaitablefunction(func: Callable[..., Any]) -> bool: ... | ||
def is_async_file(f: Any) -> bool: ... | ||
def is_file(x: object) -> TypeGuard[SupportsRead[Any]]: ... | ||
def is_iterable(x: object) -> TypeGuard[Iterable[Any]]: ... | ||
def is_awaitablefunction(func: Callable[..., Incomplete]) -> bool: ... | ||
def is_async_file(f: Incomplete) -> bool: ... | ||
def is_file(x: object) -> TypeGuard[SupportsRead[Incomplete]]: ... | ||
def is_iterable(x: object) -> TypeGuard[Iterable[Incomplete]]: ... | ||
def parse(events): ... | ||
def kvitems(events, prefix, map_type: Incomplete | None = None): ... | ||
def items(events, prefix, map_type: Incomplete | None = None): ... | ||
def enrich_backend(backend: dict[str, Any]) -> None: ... | ||
def enrich_backend(backend: dict[str, Incomplete]) -> 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
from _typeshed import Incomplete | ||
from collections.abc import Callable, Generator | ||
from typing import Any, Iterable, TypeVar | ||
from typing import Iterable, TypeVar | ||
from typing_extensions import ParamSpec, TypeAlias | ||
|
||
_P = ParamSpec("_P") | ||
_T = TypeVar("_T") | ||
_GS = TypeVar("_GS") | ||
_GR = TypeVar("_GR") | ||
_CoroPipelineArgs: TypeAlias = tuple[Callable[..., Any], tuple[Any, ...], dict[str, Any]] | ||
_CoroPipelineArgs: TypeAlias = tuple[Callable[..., Incomplete], tuple[Incomplete, ...], dict[str, Incomplete]] | ||
|
||
def coroutine(func: Callable[_P, Generator[_T, _GS, _GR]]) -> Callable[_P, Generator[_T, _GS, _GR]]: ... | ||
def chain(sink: list[Any], *coro_pipeline: _CoroPipelineArgs) -> list[Any]: ... | ||
def chain(sink: list[Incomplete], *coro_pipeline: _CoroPipelineArgs) -> list[Incomplete]: ... | ||
|
||
class sendable_list(list[_T]): | ||
# send = list.append | ||
def send(self, object: _T, /) -> None: ... | ||
|
||
def coros2gen(source: Iterable[_T], *coro_pipeline: _CoroPipelineArgs) -> Generator[_T, Any, None]: ... | ||
def coros2gen(source: Iterable[_T], *coro_pipeline: _CoroPipelineArgs) -> Generator[_T, Incomplete, 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