Skip to content

Fix #251: return VersionInfo for next_version #255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

tomschr
Copy link
Member

@tomschr tomschr commented May 13, 2020

This PR fixes #251 and contains the following changes:

  • Return VersionInfo instance in VersionInfo.next_version and not str when part is major, minor, or patch.
  • Change test_next_version_with_versioninfo: Test for correct return type (should be VersionInfo)

* Return VersionInfo instance in VersionInfo.next_version and
  not str when part is major, minor, or patch.
* Change test_next_version_with_versioninfo
  Test for correct return type (should be VersionInfo)

Co-authored-by: Thomas Laferriere <tlaferriere@users.noreply.github.com>
@tomschr tomschr added the Bug Error, flaw or fault to produce incorrect or unexpected results label May 13, 2020
@tomschr
Copy link
Member Author

tomschr commented May 13, 2020

Closed in favor of #253

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error, flaw or fault to produce incorrect or unexpected results
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VersionInfo.next_version() returns Union[VersionInfo, str]
1 participant