GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — MNT: Make get_default_filetype a classmethod by timhoffm · Pull Request #31867 · matplotlib/matplotlib Conversation
Member
FigureCanvasBase defines get_default_filetype as a class method, but all derived implementations overwrite this with an instance method. All implementations could even be static. But let's coerce to a classmethod for consistency and to not change the public API of FigureCanvasBase matplotlib/lib/matplotlib/backend_bases.py Lines 2294 to 2295 in 8747449
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsFigureCanvasBase defines get_default_filetype as a classmethod, but all derived implementations overwrite this with an instance method. All implementations could even be static. But let's coerce to a classmethod for consistency and to not change the public API of FigureCanvasBase
1 of 5 tasks
QuLogic
approved these changes
ksunden
approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
You likely mean #31854. Yes, matplotlib/lib/matplotlib/backends/backend_pdf.pyi Lines 411 to 412 in 0677cc8
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I was just checking back at this PR. May I go ahead and do this? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
MNT: add `@classmethod` and remove `ignore` post #31867
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.