Pending removal in Python 3.18¶
No longer accept a boolean value when a file descriptor is expected. (Contributed by Serhiy Storchaka in gh-82626.)
Deprecations defined by PEP 829:
importlines inname.pthfiles are silently ignored.
(Contributed by Barry Warsaw in gh-148641.)
-
Using a return annotation to infer the dispatch type for
functools.singledispatch()orfunctools.singledispatchmethodis deprecated since Python 3.16 and will raiseTypeErrorin Python 3.18. Annotate the dispatch parameter or pass the dispatch type explicitly instead. (Contributed by Bartosz Sławecki in gh-143465.)