Skip to content

Conversation

@def-
Copy link
Contributor

@def- def- commented Feb 27, 2023

So that calling parse on a derived class will show correct type of derived class

def- and others added 2 commits February 27, 2023 22:28
So that calling parse on a derived class will show correct type of
derived class
@tomschr
Copy link
Member

tomschr commented Feb 28, 2023

Thank you very much @def-! 👍
I'm not so familiar with type hints, so this is very helpful.

The only minor change that I did was to move the line with T = TypeVar("T", bound="Version") up so all definitions are together.

Many thanks!

@tomschr tomschr merged commit 6176316 into python-semver:master Feb 28, 2023
@tomschr tomschr added Release_3.x.y Only for the major release 3 Bug Error, flaw or fault to produce incorrect or unexpected results labels Feb 28, 2023
tomschr added a commit that referenced this pull request Feb 28, 2023
@def- def- deleted the pr-cls-type branch February 28, 2023 07:58
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 Release_3.x.y Only for the major release 3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants