Skip to content
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

Fix typing for specifiers.BaseSpecifier.filter() #643

Merged
merged 2 commits into from
Dec 14, 2022

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.

None yet

3 participants