pythonwrench.typing.classes module¶
- class pythonwrench.typing.classes.SupportsAdd(*args, **kwargs)[source]¶
Bases:
Protocol[_T_Other]Protocol that support __add__ (+) method.
- class pythonwrench.typing.classes.SupportsAnd(*args, **kwargs)[source]¶
Bases:
Protocol[_T_Other]Protocol that support __and__ (&) method.
- class pythonwrench.typing.classes.SupportsBool(*args, **kwargs)[source]¶
Bases:
ProtocolProtocol that support __bool__ method.
- class pythonwrench.typing.classes.SupportsDiv(*args, **kwargs)[source]¶
Bases:
Protocol[_T_Other]Protocol that support __div__ (/) method.
- class pythonwrench.typing.classes.SupportsGetitem(*args, **kwargs)[source]¶
Bases:
Protocol[_T_Item,_T_Index]Protocol that support __getitem__ method.
- class pythonwrench.typing.classes.SupportsGetitem2(*args, **kwargs)[source]¶
Bases:
Protocol[_T_Index2,_T_Item]Protocol that support __getitem__ method.
Same than SupportsGetitem except that generic parameters are in reversed order: [T_Index, T_Item].
- class pythonwrench.typing.classes.SupportsGetitemIterLen(*args, **kwargs)[source]¶
Bases:
Protocol[_T_Item,_T_Index]Protocol that support __getitem__, __iter__ and __len__ methods.
- class pythonwrench.typing.classes.SupportsGetitemIterLen2(*args, **kwargs)[source]¶
Bases:
Protocol[_T_Index2,_T_Item]Protocol that support __getitem__, __iter__ and __len__ methods.
Same than SupportsGetitemIterLen except that generic parameters are in reversed order: [T_Index, T_Item].
- class pythonwrench.typing.classes.SupportsGetitemLen(*args, **kwargs)[source]¶
Bases:
Protocol[_T_Item,_T_Index]Protocol that support __getitem__ and __len__ methods.
- class pythonwrench.typing.classes.SupportsGetitemLen2(*args, **kwargs)[source]¶
Bases:
Protocol[_T_Index2,_T_Item]Protocol that support __getitem__ and __len__ methods.
Same than SupportsGetitemLen except that generic parameters are in reversed order: [T_Index, T_Item].
- class pythonwrench.typing.classes.SupportsIterLen(*args, **kwargs)[source]¶
Bases:
Protocol[_T_Item]Protocol that support __iter__ and __len__ methods.
- class pythonwrench.typing.classes.SupportsLen(*args, **kwargs)[source]¶
Bases:
ProtocolProtocol that support __len__ method.
- class pythonwrench.typing.classes.SupportsMatmul(*args, **kwargs)[source]¶
Bases:
Protocol[_T_Other]Protocol that support __matmul__ (@) method.