Skip to content

Commit

Permalink
add file marker for type checking (#1598)
Browse files Browse the repository at this point in the history
I think this is the correct way to do this based on my understanding of
the guide to making a [pep561 compliant
package](https://mypy.readthedocs.io/en/stable/installed_packages.html#creating-pep-561-compatible-packages)
and this example in
[black](https://github.com/psf/black/pull/1395/files). Given that I get
all the type-checking info from a local installation, I don't know if
this is testable until it's published on Pypi.

resolves #1210
  • Loading branch information
LucienMorey authored Nov 21, 2024
1 parent 08b4bd1 commit fa66ed8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions photon-lib/py/photonlibpy/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions photon-lib/py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
setup(
name="photonlibpy",
packages=find_packages(),
package_data={"photonlibpy": ["py.typed"]},
version=versionString,
install_requires=[
"numpy~=2.1",
Expand Down

0 comments on commit fa66ed8

Please sign in to comment.