Skip to content

Conversation

henryiii
Copy link
Contributor

@henryiii henryiii commented Dec 13, 2022

Packaging 22 broke previously working typing by generalizing the types when passed through filter(). This changes the parameter to an iterable of Version to produce an iterator of Version, rather than adding a union with string if it was not in the input.

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
@henryiii
Copy link
Contributor Author

RtD is not pulling the PR for some reason, otherwise it's passing.

@brettcannon brettcannon changed the title types: Pass through types through Filter Fix typing for specifiers.BaseSpecifier.filter() Dec 13, 2022
@brettcannon brettcannon reopened this Dec 13, 2022
@brettcannon brettcannon merged commit 150c9a6 into pypa:main Dec 14, 2022
@pradyunsg
Copy link
Member

Should we have UnparsedVersion be a generic directly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants