Skip to content

Commit

Permalink
ENH: Add type annotation information
Browse files Browse the repository at this point in the history
Add type annotation information: add the `py.typed` file and distribute
the type information with the package by adding the corresponding entry
in the `pyproject.toml` file so that third-party tools can use the DIPY
type annotation information.

Documentation:
https://typing.readthedocs.io/en/latest/spec/distributing.html#packaging-typed-libraries
  • Loading branch information
jhlegarreta committed Dec 22, 2024
1 parent 6b6ba70 commit 4644fd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ version-file = "src/nifreeze/_version.py"
# Developer tool configurations
#

[tool.setuptools.package-data]
"nifreeze" = ["py.typed"]

[tool.ruff]
line-length = 99
target-version = "py310"
Expand Down
Empty file added src/py.typed
Empty file.

0 comments on commit 4644fd0

Please sign in to comment.