Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix #426: call subclass when deriving from Version #427

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

Merged
merged 2 commits into from
Sep 29, 2023

Conversation

tomschr
Copy link
Member

@tomschr tomschr commented Sep 28, 2023

This fixes PR #426

When using the replace method, an instance of the Version class is created and not the subclass. This commit fixes this behavior.

@dannystaple: Could you have a look, please? πŸ™‚

(The CI has currently problems. I'm currently investigating this.)

@tomschr tomschr added the Bug Error, flaw or fault to produce incorrect or unexpected results label Sep 28, 2023
@dannystaple
Copy link
Contributor

This looks good to me. I totally get investigating CI.

@tomschr tomschr force-pushed the fix-426-match-derivedclass branch 3 times, most recently from 1f131ec to cce839a Compare September 29, 2023 12:36
When using the replace method, an instance of the Version class
is created and not the respective subclass.

Co-authored-by: Danny Staple <[email protected]>
@tomschr tomschr force-pushed the fix-426-match-derivedclass branch from cce839a to 5181299 Compare September 29, 2023 12:38
@tomschr tomschr force-pushed the fix-426-match-derivedclass branch from 5181299 to 2dda51c Compare September 29, 2023 12:41
@tomschr tomschr marked this pull request as ready for review September 29, 2023 12:42
@tomschr tomschr merged commit c5c779a into python-semver:master Sep 29, 2023
@tomschr tomschr deleted the fix-426-match-derivedclass branch September 29, 2023 12:45
@tomschr
Copy link
Member Author

tomschr commented Sep 29, 2023

@dannystaple I could fix the CI problem. Thank you very much for your contribution. πŸ‘

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.

2 participants