module documentation
Plugin for supporting the functools standard library module.
Function | functools |
Add dunder methods to classes decorated with functools.total_ordering. |
Constant | functools |
Undocumented |
Class | _ |
Undocumented |
Function | _analyze |
Analyze the class body, its parents, and return the comparison methods found. |
Function | _find |
Find the type of the ``other`` argument in a comparison method. |
Constant | _ORDERING |
Undocumented |
def functools_total_ordering_maker_callback(ctx:
mypy.plugin.ClassDefContext
, auto_attribs_default: bool
= False) -> bool
:
(source)
¶
Add dunder methods to classes decorated with functools.total_ordering.