📜  python 类型提示类本身 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:49.437000             🧑  作者: Mango

代码示例1
class Position:
    ...
    def __add__(self, other: 'Position') -> 'Position':
       ...