Skip to content

Commit e3fc0da

Browse files
authored
Type kwargs as Any in plt.show (#32460)
This should prevent Pyright from raising "partially unknown" errors on calls to `plt.show`, as explained in #27030. This is particularly annoying when writing Jupyter notebooks in Python format, which usually have many calls to `plt.show`.
1 parent 8881fa8 commit e3fc0da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/matplotlib/pyplot.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ def draw_if_interactive(*args, **kwargs):
591591

592592

593593
@overload
594-
def show(*, block: bool, **kwargs) -> None: ...
594+
def show(*, block: bool, **kwargs: Any) -> None: ...
595595

596596

597597
@overload

0 commit comments

Comments
 (0)