MCPcopy
hub / github.com/python-attrs/attrs / add_order

Method add_order

src/attr/_make.py:1156–1164  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1154 return self
1155
1156 def add_order(self):
1157 cd = self._cls_dict
1158
1159 cd["__lt__"], cd["__le__"], cd["__gt__"], cd["__ge__"] = (
1160 self._add_method_dunders(meth)
1161 for meth in _make_order(self._cls, self._attrs)
1162 )
1163
1164 return self
1165
1166 def add_setattr(self):
1167 sa_attrs = {}

Callers 2

wrapFunction · 0.80
test_returns_selfMethod · 0.80

Calls 1

_make_orderFunction · 0.85

Tested by 1

test_returns_selfMethod · 0.64