Skip to content

Commit f295c01

Browse files
committed
Let tools know this library supports type hints
https://typing.python.org/en/latest/spec/distributing.html#packaging-type-information https://typing.python.org/en/latest/guides/libraries.html#marking-a-package-as-providing-type-information It turns out we need to add a py.typed file so that tools will know this library has type hints. As far as I can tell we don't need to do anything special to have our build tool (Hatch) include this file when it builds and packages the library. Signed-off-by: Nic Cope <[email protected]>
1 parent 325c37d commit f295c01

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

crossplane/function/py.typed

Whitespace-only changes.

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ classifiers = [
1414
"Development Status :: 4 - Beta",
1515
"Programming Language :: Python",
1616
"Programming Language :: Python :: 3.11",
17+
"Typing :: Typed",
1718
]
1819

1920
dependencies = [
@@ -63,7 +64,7 @@ packages = ["crossplane"]
6364
# This special environment is used by hatch fmt.
6465
[tool.hatch.envs.hatch-static-analysis]
6566
dependencies = ["ruff==0.11.2"]
66-
config-path = "none" # Disable Hatch's default Ruff config.
67+
config-path = "none" # Disable Hatch's default Ruff config.
6768

6869
[tool.ruff]
6970
target-version = "py311"

0 commit comments

Comments
 (0)