mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-17 19:41:25 +08:00
Use Generator instead of Iterator for 3rd-party context managers (#12481)
This commit is contained in:
1 parent
0b6f15c2ff
commit
37807d753a
14 files changed
+22
-22
No files matched your search
@@ -98,7 +98,7 @@ class Context:
|
||||
def __exit__(
|
||||
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
||||
) -> None: ...
|
||||
def push_alias(self) -> Generator[None, None, None]: ...
|
||||
def push_alias(self) -> Generator[None]: ...
|
||||
def sql(self, obj): ...
|
||||
def literal(self, keyword): ...
|
||||
def value(self, value, converter: Incomplete | None = ..., add_param: bool = ...): ...
|
||||
|
||||
Reference in new issue
Block a user