Skip to content

Commit b6d6280

Browse files
committed
Deprecated categories [ci skip]
1 parent aa35f6b commit b6d6280

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

docs/deprecations.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ Tk/Tcl 8.4
3333
Support for Tk/Tcl 8.4 is deprecated and will be removed in Pillow 10.0.0 (2023-01-02),
3434
when Tk/Tcl 8.5 will be the minimum supported.
3535

36+
Categories
37+
~~~~~~~~~~
38+
39+
.. deprecated:: 8.2.0
40+
41+
``Image.category`` is deprecated and will be removed in Pillow 10.0.0 (2023-01-02),
42+
along with the related :py:class:`.Image` attributes: ``Image.NORMAL``,
43+
``Image.SEQUENCE`` and ``Image.CONTAINER``.
44+
45+
To determine if an image has multiple frames or not,
46+
``getattr(im, "is_animated", False)`` can be used instead.
47+
3648
Image.show command parameter
3749
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3850

docs/reference/Image.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -502,10 +502,3 @@ Used to specify the quantization method to use for the :meth:`~Image.quantize` m
502502

503503
Check support using :py:func:`PIL.features.check_feature`
504504
with ``feature="libimagequant"``.
505-
506-
.. comment: These are not referenced anywhere?
507-
Categories
508-
^^^^^^^^^^
509-
.. data:: NORMAL
510-
.. data:: SEQUENCE
511-
.. data:: CONTAINER

0 commit comments

Comments
 (0)