Skip to content

Atom stereochemistry setter does no input validation #2084

@mattwthompson

Description

@mattwthompson

Describe the bug

I think one would have to try to run into this problem, but at very least the docstring is incorrect

https://github.com/openforcefield/openff-toolkit/blame/e71757033cd6a81a1e188d62e8b5d80186c61934/openff/toolkit/topology/molecule.py#L446-L460

To Reproduce

>>> from openff.toolkit import Molecule
>>> water = Molecule.from_smiles("O")
>>> water.atom(2).stereochemistry
>>> water.atom(2).stereochemistry = "The Mythical California Zephyr"
>>> water.atom(2).stereochemistry
'The Mythical California Zephyr'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions