We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
The Molecule class declares the extras dictionary as Dict[str, Any] but initializes its value with None.
Molecule
extras
Dict[str, Any]
None
To Reproduce
>>> import qcelemental as qcel >>> mol = qcel.models.Molecule(["H", "H"], [[0.0, 0.0, 0.0], [0.0, 0.0, 1.0]]) >>> mol.extras None
Expected behavior
An empty dictionary if extras are not initialized.
Additional context
An easy workaround is
>>> extras = mol.extras if mol.extras is not None else {}
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
The
Molecule
class declares theextras
dictionary asDict[str, Any]
but initializes its value withNone
.To Reproduce
Expected behavior
An empty dictionary if
extras
are not initialized.Additional context
An easy workaround is
The text was updated successfully, but these errors were encountered: