Skip to content

[*.py] Rename "Arguments:" to "Args:"#1188

Merged
copybara-service[bot] merged 1 commit into
tensorflow:masterfrom
SamuelMarks:args-for-google-style-docstrings
Dec 8, 2020
Merged

[*.py] Rename "Arguments:" to "Args:"#1188
copybara-service[bot] merged 1 commit into
tensorflow:masterfrom
SamuelMarks:args-for-google-style-docstrings

Conversation

@SamuelMarks
Copy link
Copy Markdown
Contributor

I've written custom parsers and emitters for everything from docstrings to classes and functions. However, I recently came across an issue with the TensorFlow codebase: inconsistent use of Args: and Arguments: in its docstrings. It is easy enough to extend my parsers to support both variants, however it looks like Arguments: is wrong anyway, as per:

Therefore, only Args: is valid. This PR replaces them throughout the codebase.

PS: For related PRs, see tensorflow/tensorflow/pull/45420

@google-cla google-cla Bot added the cla: yes Declares that the user has signed CLA label Dec 5, 2020
Copy link
Copy Markdown
Contributor

@ColCarroll ColCarroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @SamuelMarks!

@copybara-service copybara-service Bot merged commit cd88c37 into tensorflow:master Dec 8, 2020
jburnim pushed a commit to jburnim/probability that referenced this pull request Dec 22, 2020
…tyle-docstrings

PiperOrigin-RevId: 346395749
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Declares that the user has signed CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants