mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 03:41:28 +08:00
Add typing for __iter__ in sqlalchemy.orm.Query (#7666)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from _typeshed import Self
|
||||
from typing import Any, Generic, TypeVar
|
||||
from typing import Any, Generic, Iterator, TypeVar
|
||||
|
||||
from ..sql.annotation import SupportsCloneAnnotations
|
||||
from ..sql.base import Executable
|
||||
@@ -92,7 +92,7 @@ class Query(_SelectFromElements, SupportsCloneAnnotations, HasPrefixes, HasSuffi
|
||||
def one_or_none(self): ...
|
||||
def one(self): ...
|
||||
def scalar(self) -> Any: ... # type: ignore[override]
|
||||
def __iter__(self): ...
|
||||
def __iter__(self) -> Iterator[_T]: ...
|
||||
@property
|
||||
def column_descriptions(self): ...
|
||||
def instances(self, result_proxy, context: Any | None = ...): ...
|
||||
|
||||
Reference in New Issue
Block a user