As a developer,
I need change strings interpolation in User Resources file,
so that I can make that file follow Coding Standards.
Format strings using f-strings when appropriate for app/api/resources/mentorship_relation.py file.
As an example, here:
We can use f-strings in this example.
app/api/resources/mentorship_relation.py file0.5 hours
Hey! I would like to work on this issue.. May I?
Yes sure @pavani-17 :) I will assign this to you!
Hey! I was making some changes and I am not sure if I messed up my previous PR. I am really sorry for the inconvenience, but could you please let me know if the previous PR is fine. TIA
Hi everyone! Is it ok if I work on this issue please?
@LucasSD try asking it on zulip
@devkapilbansal thank you. I've mentioned it in the newcomers stream.
@devkapilbansal @isabelcosta I think that the PR #976 already contains this and also cause of refactoring, this issue has no effect.
@LucasSD I have taken a look and it was sort of fixed with the refactor.
File: https://github.com/anitab-org/mentorship-backend/blob/develop/app/api/resources/mentorship_relation.py
However, I see this line #L57, where f string is defined 2 times in the same line, perhaps that could be one f-string only. If you see any improvement to be made in this file with regards to f string I am happy to assign this to you.
@isabelcosta yes please assign to me and I'll make that small change and check through the file for anything else. Thanks
@LucasSD I just assigned this to you :)
@isabelcosta Thank you, I'll get this done next week
@isabelcosta I've made a couple of small changes as requested. Would it be worthwhile changing the below to f-strings too?
No, @LucasSD f-strings are required only when there is a variable with strings.
P.S. :- Giving an extra blank line between text and link will show the preview of line too
@devkapilbansal No worries, I'll create the pull request later. Thank you for the tip!
@devkapilbansal thank you for helping here 馃槃 Kapil is correct here @LucasSD :)
Looking forward to seeing your pull request :)