mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-04 06:07:26 +08:00
Use Generator instead of Iterator for 3rd-party context managers (#12481)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Callable, Iterator
|
||||
from collections.abc import Callable, Generator
|
||||
from contextlib import contextmanager
|
||||
from typing import ClassVar
|
||||
|
||||
@@ -32,4 +32,4 @@ class Client:
|
||||
global_cache_policy: Callable[[key.Key], bool] | None = ...,
|
||||
global_cache_timeout_policy: Callable[[key.Key], int] | None = ...,
|
||||
legacy_data: bool = ...,
|
||||
) -> Iterator[context_module.Context]: ...
|
||||
) -> Generator[context_module.Context]: ...
|
||||
|
||||
Reference in New Issue
Block a user