Open srittau opened 3 weeks ago
FWIW I have some WIP type annotations for ImageFont and _imagingft here: https://github.com/python-pillow/Pillow/compare/main...nulano:Pillow:types-imagefont
I think this is ready for review. The docs build might still fail, but I'd need help with that.
Also, the pypy3.10 failure seems unrelated?
Yeah, the PyPy one is a bit flaky.
The docs build might still fail, but I'd need help with that.
The error
docstring of PIL.Image.Image.transform:1: WARNING: py:class reference target not found: PIL.Image.GetDataTransform
is saying that the GetDataTransform
doesn't appear in the documentation, so transform()
's description can't link to it.
The way to solve this is by updating docs/reference/Image.rst to include it, by adding
.. autoclass:: GetDataTransform
:show-inheritance:
But given that our other protocols so far are SupportsGetMesh
and SupportsArrayInterface
, maybe this new protocol could be renamed SupportsGetData
?
I've created https://github.com/srittau/Pillow/pull/2 with various suggestions.
Changes proposed in this pull request:
Image
,ImageFont
,ImageDraw
, and_imagingft
modules.