Use Generator instead of Iterator for 3rd-party context managers (#12481)

This commit is contained in:
Max Muoto
2024-08-12 07:26:18 -05:00
committed by GitHub
parent 0b6f15c2ff
commit 37807d753a
14 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -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):