Skip to content

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

Open
SamuelMarks wants to merge 1 commit into
pytorch:mainfrom
SamuelMarks:args-for-google-style-docstrings
Open

[*.py] Rename "Arguments:" to "Args:"#180
SamuelMarks wants to merge 1 commit into
pytorch:mainfrom
SamuelMarks:args-for-google-style-docstrings

Conversation

@SamuelMarks
Copy link
Copy Markdown

I've written custom parsers and emitters for everything from docstrings to classes and functions. However, I recently came across an issue when I was parsing/generating from the TensorFlow—and now PyTorch—codebases: 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 pytorch/pytorch/pull/49736

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants