8000 Backport PR #26940: Add typing to pyplot.show() to avoid errors with … · matplotlib/matplotlib@5703086 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5703086

Browse files
timhoffmmeeseeksmachine
authored andcommitted
Backport PR #26940: Add typing to pyplot.show() to avoid errors with mypy --strict.
1 parent 617b775 commit 5703086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/pyplot.py

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

480480

481481
# This function's signature is rewritten upon backend-load by switch_backend.
482-
def show(*args, **kwargs):
482+
def show(*args, **kwargs) -> None:
483483
"""
484484
Display all open figures.
485485

0 commit comments

Comments
 (0)
0