-
-
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.
[SQLAlchemy] Annotate row classes (#9568)
Co-authored-by: Avasam <[email protected]>
- Loading branch information
Showing
3 changed files
with
62 additions
and
40 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,11 +1,23 @@ | ||
from typing import Any | ||
from _typeshed import Incomplete | ||
from collections.abc import Callable, Iterable, Iterator | ||
from typing import Any, overload | ||
|
||
class BaseRow: | ||
def __init__(self, parent, processors, keymap, key_style, data) -> None: ... | ||
def __reduce__(self): ... | ||
def __iter__(self): ... | ||
def __init__( | ||
self, | ||
__parent, | ||
__processors: Iterable[Callable[[Any], Any]] | None, | ||
__keymap: dict[Incomplete, Incomplete], | ||
__key_style: int, | ||
__row: Iterable[Any], | ||
) -> None: ... | ||
def __reduce__(self) -> tuple[Incomplete, tuple[Incomplete, Incomplete]]: ... | ||
def __iter__(self) -> Iterator[Any]: ... | ||
def __len__(self) -> int: ... | ||
def __hash__(self) -> int: ... | ||
__getitem__: Any | ||
@overload | ||
def __getitem__(self, __key: str | int) -> tuple[Any, ...]: ... | ||
@overload | ||
def __getitem__(self, __key: slice) -> tuple[tuple[Any, ...]]: ... | ||
|
||
def safe_rowproxy_reconstructor(__cls, __state): ... |
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