Skip to content

Commit e8456e1

Browse files
authored
Merge pull request #709 from sed-i/feature/typing
#709 When running static checks, mypy complains: ``` tests/integration/test_bundle.py:24: error: Skipping analyzing "juju": module is installed, but missing library stubs or py.typed marker [import] import juju ^ ``` Error goes away after introducing the py.typed marker. Ref: [Mypy docs for PEP-516](https://mypy.readthedocs.io/en/latest/installed_packages.html#creating-pep-561-compatible-packages)
2 parents 64f91f1 + f07696a commit e8456e1

2 files changed

Lines changed: 1 addition & 0 deletions

File tree

juju/py.typed

Whitespace-only changes.

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
version=version.read_text().strip(),
3131
packages=find_packages(
3232
exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
33+
package_data={'juju': ['py.typed']},
3334
install_requires=[
3435
'macaroonbakery>=1.1,<2.0',
3536
'pyRFC3339>=1.0,<2.0',

0 commit comments

Comments
 (0)