|
1 | 1 | Pending removal in Python 3.17 |
2 | 2 | ------------------------------ |
3 | 3 |
|
4 | | -* :mod:`collections.abc`: |
5 | | - |
6 | | - - :class:`collections.abc.ByteString` is scheduled for removal in Python 3.17. Prefer |
7 | | - :class:`~collections.abc.Sequence` or :class:`~collections.abc.Buffer`. For use in |
8 | | - type annotations, prefer a union, like ``bytes | bytearray``, or |
9 | | - :class:`collections.abc.Buffer`. (Contributed by Shantanu Jain in :gh:`91896`.) |
10 | | - |
11 | 4 | * :mod:`typing`: |
12 | 5 |
|
13 | 6 | - Before Python 3.14, old-style unions were implemented using the private class |
14 | 7 | ``typing._UnionGenericAlias``. This class is no longer needed for the implementation, |
15 | 8 | but it has been retained for backward compatibility, with removal scheduled for Python |
16 | 9 | 3.17. Users should use documented introspection helpers like :func:`typing.get_origin` |
17 | 10 | and :func:`typing.get_args` instead of relying on private implementation details. |
18 | | - |
19 | 11 | - :class:`typing.ByteString`, deprecated since Python 3.9, is scheduled for removal in |
20 | 12 | Python 3.17. Prefer :class:`~collections.abc.Sequence` or |
21 | 13 | :class:`~collections.abc.Buffer`. For use in type annotations, prefer a union, like |
22 | 14 | ``bytes | bytearray``, or :class:`collections.abc.Buffer`. |
23 | 15 | (Contributed by Shantanu Jain in :gh:`91896`.) |
| 16 | + |
| 17 | +* :mod:`collections.abc`: |
| 18 | + |
| 19 | + - :class:`collections.abc.ByteString` is scheduled for removal in Python 3.17. Prefer |
| 20 | + :class:`~collections.abc.Sequence` or :class:`~collections.abc.Buffer`. For use in |
| 21 | + type annotations, prefer a union, like ``bytes | bytearray``, or |
| 22 | + :class:`collections.abc.Buffer`. (Contributed by Shantanu Jain in :gh:`91896`.) |
0 commit comments