Skip to content

Commit

Permalink
Export type hints from openslide package
Browse files Browse the repository at this point in the history
Now that we've fully populated type hints, add py.typed marker (and also
"Typing :: Typed" Trove classifier) so type checkers will use them.

Signed-off-by: Benjamin Gilbert <[email protected]>
  • Loading branch information
bgilbert committed Oct 20, 2024
1 parent aa2a01f commit 5f49c01
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Empty file added openslide/py.typed
Empty file.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Typing :: Typed",
]
requires-python = ">= 3.8"
dependencies = ["Pillow"]
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@
# tag wheel for Limited API
'bdist_wheel': {'py_limited_api': 'cp311'} if _abi3 else {},
},
package_data={
'openslide': ['py.typed'],
},
)

0 comments on commit 5f49c01

Please sign in to comment.