Add type hints to homeassistant.auth (#15853)

* Always load users in auth store before use

* Use namedtuple instead of dict for user meta

* Ignore auth store tokens with invalid created_at

* Add type hints to homeassistant.auth
This commit is contained in:
Ville Skyttä 2018-08-16 23:25:41 +03:00 committed by Paulus Schoutsen
parent e9e5bce10c
commit 649f17fe47
9 changed files with 300 additions and 200 deletions

View file

@ -58,4 +58,4 @@ whitelist_externals=/bin/bash
deps =
-r{toxinidir}/requirements_test.txt
commands =
/bin/bash -c 'mypy homeassistant/*.py homeassistant/util/'
/bin/bash -c 'mypy homeassistant/*.py homeassistant/auth/ homeassistant/util/'