Use monkeypatch by radarhere · Pull Request #8626 · python-pillow/Pillow
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 2.4k
Conversation
This is part of #8362 - I'm hoping to break down that PR into easier-to-review chunks.
- Uses monkeypatch for
def im_draft( mode: str, size: tuple[int, int] ) -> tuple[str, tuple[int, int, float, float]] | None: result = draft(mode, size) assert result is not None return result im.draft = im_draft - Updates the type arguments in the mock method to match
def draft( self, mode: str | None, size: tuple[int, int] | None
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters