mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 01:38:40 +08:00
Use Generator instead of Iterator for 3rd-party context managers (#12481)
This commit is contained in:
@@ -46,7 +46,7 @@ class PairSpec(TypedDict, total=False):
|
||||
wrap: int | None
|
||||
|
||||
@contextmanager
|
||||
def theme_context(params: dict[str, Any]) -> Generator[None, None, None]: ...
|
||||
def theme_context(params: dict[str, Any]) -> Generator[None]: ...
|
||||
def build_plot_signature(cls: _ClsT) -> _ClsT: ... # -> _ClsT & "__signature__ protocol"
|
||||
|
||||
class ThemeConfig(mpl.RcParams):
|
||||
|
||||
Reference in New Issue
Block a user