这是什么问题?
代码 PendingDeprecationWarning · Python 报告的问题。
此条目包含不属于错误的警告或状态值。请查阅原文,确认其返回条件。
译文说明
有关已过时且预计将来会弃用但目前尚未弃用的功能的警告的基类。
此类很少使用,因为发出有关可能即将发生的弃用的警告是不寻常的,并且 DeprecationWarning 对于已经处于活动状态的弃用而言是首选。
被默认警告过滤器忽略。启用 Python 开发模式会显示此警告。
PEP 387 中描述了弃用政策。
Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。
官方说明 · 原文
Base class for warnings about features which are obsolete and expected to be deprecated in the future, but are not deprecated at the moment.
This class is rarely used as emitting a warning about a possible upcoming deprecation is unusual, and DeprecationWarning is preferred for already active deprecations.
Ignored by the default warning filters. Enabling the Python Development Mode shows this warning.
The deprecation policy is described in PEP 387.