-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add missing f-string #1427
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?
Add missing f-string #1427
Conversation
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.
Pull Request Overview
This PR fixes a missing f-string prefix in an error message format string. The change ensures that variable interpolation works correctly when displaying autoscaling configuration for workers.
- Adds missing
fprefix to the second line of a multi-line f-string
| self.write(dict(message=f"Autoscaling '{workername}' worker " | ||
| "(min={min}, max={max})")) | ||
| f"(min={min}, max={max})")) |
Copilot
AI
Aug 9, 2025
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.
[nitpick] The f-string fix is correct, but this creates an inconsistent string concatenation pattern. Consider combining both lines into a single f-string for better readability: f"Autoscaling '{workername}' worker (min={min}, max={max})"
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.
can you please check this?
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 don't think Copilot's comment matters here. The changed version keeps the original styling/new line.
| self.write(dict(message=f"Autoscaling '{workername}' worker " | ||
| "(min={min}, max={max})")) | ||
| f"(min={min}, max={max})")) |
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.
can you please check this?
|
@auvipy I think this can be merged. |
The super easy fix for this:
#1426