Skip to content

Commit

Permalink
Create py.typed (#189)
Browse files Browse the repository at this point in the history
* Create py.typed

As recommended in [pep 0561](https://peps.python.org/pep-0561/), a blank `py.typed` marker should be included when type hints are used so downstream codes can type check with `mypy` and similar tools.

* Update py.typed

* fixed linting

* Update pyproject.toml

---------

Co-authored-by: BowenD-UCB <[email protected]>
  • Loading branch information
Andrew-S-Rosen and BowenD-UCB authored Aug 18, 2024
1 parent 2570b29 commit aab43e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Empty file added chgnet/py.typed
Empty file.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Package = "https://pypi.org/project/chgnet"
find = { include = ["chgnet*"], exclude = ["tests", "tests*"] }

[tool.setuptools.package-data]
"chgnet" = ["*.json"]
"chgnet" = ["*.json", "py.typed"]
"chgnet.pretrained" = ["*", "**/*"]

[build-system]
Expand Down

0 comments on commit aab43e4

Please sign in to comment.