File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 50
50
import sys
51
51
import threading
52
52
import time
53
- from typing import TYPE_CHECKING , cast , overload
53
+ from typing import IO , TYPE_CHECKING , cast , overload
54
54
55
55
from cycler import cycler # noqa: F401
56
56
import matplotlib
@@ -1259,11 +1259,11 @@ def draw() -> None:
1259
1259
1260
1260
1261
1261
@_copy_docstring_and_deprecators (Figure .savefig )
1262
- def savefig (* args , ** kwargs ) -> None :
1262
+ def savefig (fname : str | os . PathLike | IO , ** kwargs ) -> None :
1263
1263
fig = gcf ()
1264
1264
# savefig default implementation has no return, so mypy is unhappy
1265
1265
# presumably this is here because subclasses can return?
1266
- res = fig .savefig (* args , ** kwargs ) # type: ignore[func-returns-value]
1266
+ res = fig .savefig (fname , ** kwargs ) # type: ignore[func-returns-value]
1267
1267
fig .canvas .draw_idle () # Need this if 'transparent=True', to reset colors.
1268
1268
return res
1269
1269
You can’t perform that action at this time.
0 commit comments