pep440 ¶ PEP440 version sorting implementation. It is based on packaging. See the PEP440 spec. PEP440Sorter ¶ PEP440 sorter class. sorter(self) ¶ Return version parsing function, suitable for PEP440. Source code in versort/sorters/pep440.py def sorter(self) -> CallableThatReturnsSortable: """Return version parsing function, suitable for PEP440.""" return parse