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

Fix RWMol::addAtom docstring #6477

Merged
merged 1 commit into from
Jun 23, 2023
Merged

Fix RWMol::addAtom docstring #6477

merged 1 commit into from
Jun 23, 2023

Conversation

d-b-w
Copy link
Contributor

@d-b-w d-b-w commented Jun 21, 2023

The docstring claimed that it returned the new number of atoms. It actually returns the index of the new atom.

I think it makes more sense to change the documentation than the behavior, because callers are definitely out there using the current behavior.

The docstring claimed that it returned the new number of atoms. It actually returns the index of the new atom.

I think it makes more sense to change the documentation than the behavior, because callers are definitely out there using the current behavior.
Copy link
Member

@greglandrum greglandrum left a comment

Choose a reason for hiding this comment

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

LGTM

@greglandrum greglandrum merged commit 5393a00 into rdkit:master Jun 23, 2023
8 of 10 checks passed
@greglandrum greglandrum added this to the 2023_03_3 milestone Jun 23, 2023
greglandrum pushed a commit that referenced this pull request Aug 17, 2023
The docstring claimed that it returned the new number of atoms. It actually returns the index of the new atom.

I think it makes more sense to change the documentation than the behavior, because callers are definitely out there using the current behavior.
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.

None yet

2 participants