Skip to content

Commit e8e8691

Browse files
committed
✨ Package and distribute type information
From [Hypermodern Python Cookiecutter](https://cookiecutter-hypermodern-python.readthedocs.io/en/2020.6.15/guide.html?highlight=py.typed#the-initial-package): "`py.typed` is an empty marker file, which declares that your package supports typing and is distributed with its own type information (PEP 561). This allows people using your package to type-check their Python code against it." See: - [PEP-561](https://www.python.org/dev/peps/pep-0561/) - [Reference implementation: `aws-lambda-powertools-python`](aws-powertools/powertools-lambda-python#237) - [Implementation Explanation](python-poetry/poetry#1338 (comment))
1 parent 448c7bc commit e8e8691

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ license = "Apache-2.0"
77
readme = "README.md"
88
repository = "{{cookiecutter.remote_vcs_host}}/{{cookiecutter.remote_vcs_username}}/{{cookiecutter.project_slug}}"
99
homepage = "{{cookiecutter.remote_vcs_host}}/{{cookiecutter.remote_vcs_username}}/{{cookiecutter.project_slug}}"
10+
include = ["{{cookiecutter.package_name}}/py.typed"]
1011
classifiers = [
1112
"Intended Audience :: Developers",
1213
"License :: OSI Approved :: Apache Software License",

{{cookiecutter.project_slug}}/{{cookiecutter.package_name}}/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)