-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN Replace old string formatting syntax with f-strings #29547: 2 files w… #34370
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
… 2 files were fixed
pandas/_libs/tslibs/timedeltas.pyx
Outdated
@@ -584,7 +584,7 @@ cdef inline int64_t parse_iso_format_string(str ts) except? -1: | |||
bint have_dot = 0, have_value = 0, neg = 0 | |||
list number = [], unit = [] | |||
|
|||
err_msg = "Invalid ISO 8601 Duration format - {}".format(ts) | |||
err_msg = "Invalid ISO 8601 Duration format - {ts}" |
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.
Missing the f
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.
How dumb I am ! I will propose a new (valid) PR tomorow.
Thank for the reply
@@ -194,7 +194,7 @@ def integer_op_not_supported(obj): | |||
"Addition/subtraction of integers and integer-arrays with {cls} is " | |||
"no longer supported. Instead of adding/subtracting `n`, " | |||
"use `n * obj.freq`" | |||
).format(cls=cls) | |||
) |
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.
Here as well
Hello, I’ve fixed the 2 issues. All test were passed successfully. |
thanks @OlivierLuG |
Hello, i'm new to github / opensource. Let me know if I'm doing things correctly
pandas/_libs/tslibs/timedeltas.pyx
pandas/_libs/tslibs/timestamps.pyx
Replace old string formatting syntax with f-strings #29547
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff