From 6907fa5c8e4041e6dcf169c2b093cf739e196b73 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sat, 26 Feb 2022 22:03:12 +0100 Subject: [PATCH] Add py.typed (#11865) --- public/__init__.py | 2 +- public/py.typed | 0 setup.cfg | 5 +++++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 public/py.typed diff --git a/public/__init__.py b/public/__init__.py index 1debde5485..493110db57 100644 --- a/public/__init__.py +++ b/public/__init__.py @@ -2,6 +2,6 @@ from pathlib import Path -def where(): +def where() -> Path: """Return path to the frontend.""" return Path(__file__).parent diff --git a/public/py.typed b/public/py.typed new file mode 100644 index 0000000000..e69de29bb2 diff --git a/setup.cfg b/setup.cfg index f3efcd2597..3690791245 100644 --- a/setup.cfg +++ b/setup.cfg @@ -19,3 +19,8 @@ python_requires = >= 3.4.0 [options.packages.find] include = hass_frontend* + +[mypy] +python_version = 3.4 +show_error_codes = True +strict = True