Skip to content

Fully update chemicaljson.py to Python >= 3.10 and Pydantic >= 2, with Numpy-style docstrings#35

Open
brockdyer03 wants to merge 1 commit into
OpenChemistry:mainfrom
brockdyer03:update_pydantic
Open

Fully update chemicaljson.py to Python >= 3.10 and Pydantic >= 2, with Numpy-style docstrings#35
brockdyer03 wants to merge 1 commit into
OpenChemistry:mainfrom
brockdyer03:update_pydantic

Conversation

@brockdyer03

Copy link
Copy Markdown

This is a bit more extensive of a rework than that in #34, since it automatically implies Python >= 3.10 in addition to Pydantic >= 2.

Some notable features are the addition of more comprehensive docstrings that follow the Numpy docstring standard and removing the outdated syntax for type hints such as Optional and List.

I also took the liberty of aligning the type hints and Field declarations to make the source code a bit more readable (in my opinion).

Signed-off-by: brockdyer03 <brockdyer03@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant