Removed unused TiffImagePlugin IFD_LEGACY_API by radarhere · Pull Request #8355 · python-pillow/Pillow
Searching the top 8k PyPI projects only shows use in Pillow and type checkers:
❯ python3 ~/github/misc/cpython/search_pypi_top.py -q . IFD_LEGACY_API ./pytype-2024.4.11.tar.gz: pytype-2024.4.11/pytype/typeshed/stubs/Pillow/PIL/TiffImagePlugin.pyi: IFD_LEGACY_API: bool ./pillow-10.3.0.tar.gz: pillow-10.3.0/src/PIL/TiffImagePlugin.py: IFD_LEGACY_API = True ./pillow-10.3.0.tar.gz: pillow-10.3.0/src/PIL/TiffImagePlugin.py: # undone -- switch this pointer when IFD_LEGACY_API == False ./pyre-check-0.9.22.tar.gz: pyre_check-0.9.22/typeshed/stubs/Pillow/PIL/TiffImagePlugin.pyi: IFD_LEGACY_API: bool ./types-Pillow-10.2.0.20240520.tar.gz: types-Pillow-10.2.0.20240520/PIL-stubs/TiffImagePlugin.pyi: IFD_LEGACY_API: bool Time: 0:00:29.920569 Found 5 matching lines in 4 projects
Likewise with grep.app:
https://grep.app/search?q=IFD_LEGACY_API&case=true
And GitHub, where it's also in some AST symbol tables, but they look like dumps of specific versions:
https://github.com/search?q=IFD_LEGACY_API&ref=opensearch&type=code&p=1
Technically this is a breaking change, but I think we can make an exception to the deprecation period, and go straight to removal in a major version. Let's also document it in the release notes and removals.