Skip to content
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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SamuelMarks
Copy link

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

@googlebot googlebot added the cla: yes PR contributor has signed CLA label Dec 5, 2020
@github-actions github-actions bot added technique:clustering Regarding tfmot.clustering.keras APIs and docs technique:pruning Regarding tfmot.sparsity.keras APIs and docs labels Dec 5, 2020
@akarmi
Copy link
Contributor

akarmi commented Jan 27, 2021

Thank you for your contribution @SamuelMarks, and sorry for taking so long to review this. Could you please update this PR to cover recently merged [experimental](https://github.com/tensorflow/model-optimization/tree/master/tensorflow_model_optimization/python/core/clustering/keras/experimental modules)?

@daverim, please review this change.

@akarmi akarmi requested a review from daverim January 27, 2021 14:15
@SamuelMarks SamuelMarks force-pushed the args-for-google-style-docstrings branch from 0867601 to 4f4e5d0 Compare January 28, 2021 03:06
@SamuelMarks SamuelMarks reopened this Jan 28, 2021
@SamuelMarks
Copy link
Author

@akarmi That should do the trick

@akarmi
Copy link
Contributor

akarmi commented Jan 28, 2021

@akarmi That should do the trick

Thank you! LGTM.

@akarmi akarmi self-requested a review January 28, 2021 12:14
@akarmi akarmi requested review from nutsiepully and Xhark January 28, 2021 12:16
@akarmi
Copy link
Contributor

akarmi commented Apr 30, 2021

@daverim, please check this change.

@SamuelMarks SamuelMarks force-pushed the args-for-google-style-docstrings branch from 1e79b7c to 53d2425 Compare April 30, 2021 12:15
@SamuelMarks
Copy link
Author

@akarmi Okay I merged in master (again)

@github-actions github-actions bot added the technique:qat Regarding tfmot.quantization.keras (for quantization-aware training) APIs and docs label Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes PR contributor has signed CLA technique:clustering Regarding tfmot.clustering.keras APIs and docs technique:pruning Regarding tfmot.sparsity.keras APIs and docs technique:qat Regarding tfmot.quantization.keras (for quantization-aware training) APIs and docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants