(self)
| 329 | |
| 330 | @property |
| 331 | def _canonical_spec(self) -> Tuple[str, str]: |
| 332 | canonical_version = canonicalize_version( |
| 333 | self._spec[1], |
| 334 | strip_trailing_zero=(self._spec[0] != "~="), |
| 335 | ) |
| 336 | return self._spec[0], canonical_version |
| 337 | |
| 338 | def __hash__(self) -> int: |
| 339 | return hash(self._canonical_spec) |
nothing calls this directly
no test coverage detected