Skip to content

Commit 6ba7d5f

Browse files
authored
Merge pull request matplotlib#26940 from hhoppe/hhoppe-patch-1
Add typing to pyplot.show() to avoid errors with mypy --strict.
2 parents 1536245 + 4d02b5f commit 6ba7d5f

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
@@ -478,7 +478,7 @@ def draw_if_interactive(*args, **kwargs):
478478

479479

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

0 commit comments

Comments
 (0)