-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Pull in typing information from ResolveLib #9699
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
Conversation
error = self.factory.get_installation_error( | ||
cast("ResolutionImpossible[Requirement, Candidate]", e), | ||
constraints, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a better way to handle the type of e
? ResolutionImpossible
is a generic exception, but I’m not sure how to specify the type variables here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, this is fine.
5802d21
to
7b2478e
Compare
e1019b9
to
b0842fe
Compare
Waiting for #9700. |
087bb31
to
dea6acc
Compare
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
b337f94
to
9ceabb5
Compare
I’m going to merge this later today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know I'd thought about this case when writing vendoring
, but it makes me happy that this just works! :)
error = self.factory.get_installation_error( | ||
cast("ResolutionImpossible[Requirement, Candidate]", e), | ||
constraints, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, this is fine.
Er, the news bot is stuck for some reason. |
That works. |
ResolveLib now distributes
.pyi
type stubs and uses generics to enforce type safety on provider hooks. Pull in and use them.This PR should not contain any run-time behavioural change.