From 0ce3e4379da85f294d5d24cd839df9334ecfbdf9 Mon Sep 17 00:00:00 2001 From: Peter Naudus Date: Wed, 6 Feb 2019 22:00:57 -0500 Subject: [PATCH 1/2] Add namespace_packages to mypy_default.ini --- mypy_default.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mypy_default.ini b/mypy_default.ini index c068072..0bd7c90 100644 --- a/mypy_default.ini +++ b/mypy_default.ini @@ -38,3 +38,7 @@ warn_unused_ignores=False # Flip them on if you feel adventurous. disallow_untyped_defs=False check_untyped_defs=False + +# Python3 doesn't require __init__.py, but MyPy won't find modules without +# init files unless this is set to True +namespace_packages=True From 804a2a78f9eba7806b8ec73d6c0ac8d2033850e1 Mon Sep 17 00:00:00 2001 From: Peter Naudus Date: Wed, 6 Feb 2019 22:02:18 -0500 Subject: [PATCH 2/2] copied changes from mypy_default.ini to README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 16a0fb3..b5f1574 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,10 @@ warn_unused_ignores=False # Flip them on if you feel adventurous. disallow_untyped_defs=False check_untyped_defs=False + +# Python3 doesn't require __init__.py, but MyPy won't find modules without +# init files unless this is set to True +namespace_packages=True ``` If you disagree with the defaults above, you can specify your own *mypy*