Repository navigation
renaming backend func_info dictionary's keys - #7219
Conversation
|
@eriknw here is a proposal to update the variable names for passing the documentation information from the backend to networkx. What do you think? |
func_info dictionary's keys
by @eriknw Co-authored-by: Erik Welch <[email protected]>
|
@eriknw could you approve this PR if it is good to go from your perspective? I don't want to mess up anything you are working on that this might touch. |
|
I hadn't considered the connotation difference between "extra" and "additional", but, yeah, let's go with "additional". Regarding the new names, I think having
|
|
Thanks for the review @eriknw !
“additional" is used when talking about something that is added to what already exists. And “extra” is used when talking about something that is in addition to what is necessary or required. In the case of backend arguments, it might(or might not) be that some of the backend kwargs are necessary. So, "additional" seemed more appropriate to me. |
dschult
left a comment
There was a problem hiding this comment.
This looks good to me and Erik has given feedback on the names.
Thanks @Schefflera-Arboricola
Updating to match changes from networkx/networkx#7219 Authors: - Erik Welch (https://github.com/eriknw) Approvers: - Rick Ratzel (https://github.com/rlratzel) URL: #4192
* renamed extra_parameters to additional_parameters * renamed extra_docstring to backend_func_docs * added backend_func_examples and backend_func_url * added example heading * small edit * style fix * bug fix * updated backends.py * style fix * code refactoring * style fix * Update backends.py * updated lines * rm backend_func_examples * using walrus operator instead of 'if' by @eriknw Co-authored-by: Erik Welch <[email protected]> * used walrus operator * style fix * used walrus opr * style fix * style fix * Updated key names * Updated comment --------- Co-authored-by: Erik Welch <[email protected]>
Changes made :
url: if we would want to link to the function's webpage page(in the future) or source code, right now in nx-parallel I've put the link to the function header(MAINT: updating backend.get_info nx-parallel#47)extra_parameterstoadditional_parameters: bcoz "extra" gives a sense that they are not necessary but "additional" gives a sense that they are an added functionality, anyways we can keep it if it's not that big of a changeextra_docstringtoadditional_docsfor the similar reason as above