-
Notifications
You must be signed in to change notification settings - Fork 33
Update solve and solveAll with typehints #775
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
base: master
Are you sure you want to change the base?
Conversation
.solve() functions with type arguments.solve() functions with typed arguments
ThomSerg
left a comment
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.
Looks good. Maybe change the pull request's title to reflect that this is only for the time_limit argument, and for the others (for example not for solution_limit).
.solve() functions with typed arguments.solve() functions with typed time_limit argument
Dimosts
left a comment
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.
Why only time_limit and not e.g. also solution_limit? I suggest that we should do all that w can in the PR.
|
I updated the other common arguments to the solve/solveall functions, as well as the solution hint function. It's out of scope for this PR to fix it, but maybe @hbierlee could have a look at this in the future? This one should be ready for a re-review. |
ThomSerg
left a comment
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.
Some small comments
tias
left a comment
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.
looks good to me, please keep the ball rolling
.solve() functions with typed time_limit argument|
Assuming the tests pass, I think this can be merged now |
Update the function headers of
solveandsolveAllwith type hints for the time_limit argument.Something weird was the
def solve()function of the superclass, it has some weirdmodelargument which did not make any sense to me; according to git blame it has been there since 2021.Also fixes #745 (new version of gcs)