Skip to content

Commit d421cec

Browse files
authored
Merge pull request matplotlib#31884 from myzhang1029/types-31854-31867-followup
MNT: add `@classmethod` and remove `ignore` post matplotlib#31867
2 parents 8765417 + 6af7e4c commit d421cec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/backends/backend_pdf.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ class PdfPages:
408408

409409
class FigureCanvasPdf(FigureCanvasBase):
410410
filetypes: dict[str, str]
411-
# FIXME: `get_default_filetype` does not inherit from `FigureCanvasBase` correctly
412-
def get_default_filetype(cls) -> str: ... # type: ignore[override]
411+
@classmethod
412+
def get_default_filetype(cls) -> str: ...
413413
def print_pdf(
414414
self,
415415
filename: PdfPages | str | os.PathLike | IO[Any],

0 commit comments

Comments
 (0)