【发布时间】:2017-09-21 11:56:08
【问题描述】:
【问题讨论】:
标签: python-3.x mypy type-annotation
【问题讨论】:
标签: python-3.x mypy type-annotation
目前(从 Python 3.6 开始)“缓冲区协议”只是一个 C API 的东西 - 你甚至不能在常规 Python 代码中谈论它。
cf:Add typing.py class describing a PEP 3118 buffer object
我现在会使用Any。
【讨论】: