Skip to content

Conversation

tomschr
Copy link
Member

@tomschr tomschr commented Nov 8, 2020

This PR fixes #309 and contains:

  • Rename comparator -> _comparator, cmp -> _cmp
  • Remove ensure_str and integrate it into Version.parse
  • Rework tests in test_typeerror-274.py
  • Move _nat_cmp to Version and make it a class method
  • Remove private functions from API documentation

@tomschr tomschr added the Enhancement Not a bug, but increases or improves in value, quality, desirability, or attractiveness label Nov 8, 2020
@tomschr tomschr requested a review from a team November 8, 2020 14:26
@tomschr tomschr self-assigned this Nov 8, 2020
@tomschr tomschr marked this pull request as ready for review November 8, 2020 19:40
@tomschr tomschr force-pushed the feature/309-private-functions branch from b65619d to 42fd668 Compare November 8, 2020 19:50
Make private function in semver.version module:

* Rename comparator -> _comparator, cmp -> _cmp
* Remove ensure_str and integrate it into Version.parse
* Rework tests in test_typeerror-274.py
* Move _nat_cmp to Version and make it a class method
* Remove private functions from API documentation
@tomschr tomschr force-pushed the feature/309-private-functions branch from 42fd668 to 201d783 Compare November 10, 2020 07:36
@tomschr tomschr merged commit 13ad4ab into python-semver:master Nov 10, 2020
@tomschr tomschr deleted the feature/309-private-functions branch November 10, 2020 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Not a bug, but increases or improves in value, quality, desirability, or attractiveness
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rework some "private" functions in semver.version?
2 participants