From db53fad28d555baaa4a4f39ff2e748faee32770d Mon Sep 17 00:00:00 2001 From: Jere Lahelma <17461971+je-l@users.noreply.github.com> Date: Wed, 13 Feb 2019 17:11:33 +0200 Subject: [PATCH] add py.typed marker file for PEP-561 support (#391) Fix #390 Disable zip_safe option as mypy is incompatible with it. --- pydantic/py.typed | 0 setup.py | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 pydantic/py.typed diff --git a/pydantic/py.typed b/pydantic/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py index 12247aa..df34803 100644 --- a/setup.py +++ b/setup.py @@ -68,8 +68,9 @@ setup( url='https://github.com/samuelcolvin/pydantic', license='MIT', packages=['pydantic'], + package_data={'pydantic': ['py.typed']}, python_requires='>=3.6', - zip_safe=True, + zip_safe=False, # https://mypy.readthedocs.io/en/latest/installed_packages.html install_requires=[ 'dataclasses>=0.6;python_version<"3.7"' ],