Upgrade mypy to 0.730, address raised issues (#26959)

https://mypy-lang.blogspot.com/2019/09/mypy-730-released.html
This commit is contained in:
Ville Skyttä 2019-09-27 22:57:59 +03:00 committed by GitHub
parent 77654da341
commit fde128d66c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 25 additions and 19 deletions

View file

@ -598,8 +598,7 @@ def deprecated(
else:
# Unclear when it is None, but it happens, so let's guard.
# https://github.com/home-assistant/home-assistant/issues/24982
# type ignore/unreachable: https://github.com/python/typeshed/pull/3137
module_name = __name__ # type: ignore
module_name = __name__
if replacement_key and invalidation_version:
warning = (