| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,10 @@ | |||
| 14 | 14 | ||
| 15 | 15 | .. testsetup:: * | |
| 16 | 16 | ||
| 17 | - from collections.abc import * | ||
| 17 | + import warnings | ||
| 18 | + # Ignore warning when ByteString is imported | ||
| 19 | + with warnings.catch_warnings(action='ignore', category=DeprecationWarning): | ||
| 20 | + from collections.abc import * | ||
| 18 | 21 | import itertools | |
| 19 | 22 | __name__ = '<doctest>' | |
| 20 | 23 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -831,6 +831,9 @@ Pending Removal in Python 3.14 | |||
| 831 | 831 | For use in typing, prefer a union, like ``bytes | bytearray``, or :class:`collections.abc.Buffer`. | |
| 832 | 832 | (Contributed by Shantanu Jain in :gh:`91896`.) | |
| 833 | 833 | ||
| 834 | + * :class:`typing.ByteString`, deprecated since Python 3.9, now causes an | ||
| 835 | + :exc:`DeprecationWarning` to be emitted when it is used or accessed. | ||
| 836 | + | ||
| 834 | 837 | * Creating immutable types (:data:`Py_TPFLAGS_IMMUTABLETYPE`) with mutable | |
| 835 | 838 | bases using the C API. | |
| 836 | 839 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments