(self)
| 679 | |
| 680 | @util.memoized_property |
| 681 | def comparator(self): |
| 682 | if callable(self._comparator): |
| 683 | self._comparator = self._comparator() |
| 684 | if self._adapt_to_entity: |
| 685 | self._comparator = self._comparator.adapt_to_entity( |
| 686 | self._adapt_to_entity |
| 687 | ) |
| 688 | return self._comparator |
| 689 | |
| 690 | def adapt_to_entity(self, adapt_to_entity): |
| 691 | return self.__class__( |
nothing calls this directly
no test coverage detected