module documentation
(source)

Plugin for supporting the functools standard library module.
Function functools​_total​_ordering​_maker​_callback Add dunder methods to classes decorated with functools.total_ordering.
Constant functools​_total​_ordering​_makers Undocumented
Function _analyze​_class Analyze the class body, its parents, and return the comparison methods found.
Function _find​_other​_type Find the type of the other argument in a comparison method.
Constant _ORDERING​_METHODS Undocumented
Variable _​Method​Info Undocumented
def functools_total_ordering_maker_callback(ctx, auto_attribs_default=False): (source)
Add dunder methods to classes decorated with functools.total_ordering.
Parameters
ctx:mypy.plugin.ClassDefContextUndocumented
auto​_attribs​_default:boolUndocumented
functools_total_ordering_makers: set[str] = (source)

Undocumented

Value
set(['functools.total_ordering'])
def _analyze_class(ctx): (source)
Analyze the class body, its parents, and return the comparison methods found.
Parameters
ctx:mypy.plugin.ClassDefContextUndocumented
Returns
Dict[str, Optional[_MethodInfo]]Undocumented
def _find_other_type(method): (source)
Find the type of the other argument in a comparison method.
Parameters
method:_MethodInfoUndocumented
Returns
TypeUndocumented
_ORDERING_METHODS: set[str] = (source)

Undocumented

Value
set(['__lt__', '__le__', '__gt__', '__ge__'])
_MethodInfo = (source)

Undocumented