supports_add

ソースコード

from titan_pylib.my_class.supports_add import SupportsAdd

view on github

展開済みコード

1# from titan_pylib.my_class.supports_add import SupportsAdd
2from typing import Protocol
3
4
5class SupportsAdd(Protocol):
6
7    def __add__(self, other): ...
8    def __iadd__(self, other): ...
9    def __radd__(self, other): ...

仕様

class SupportsAdd(*args, **kwargs)[source]

Bases: Protocol