Skip to content

Commit 4644fd0

Browse files
committed
ENH: Add type annotation information
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
1 parent 6b6ba70 commit 4644fd0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ version-file = "src/nifreeze/_version.py"
122122
# Developer tool configurations
123123
#
124124

125+
[tool.setuptools.package-data]
126+
"nifreeze" = ["py.typed"]
127+
125128
[tool.ruff]
126129
line-length = 99
127130
target-version = "py310"

src/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)