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

@ -54,7 +54,7 @@ def get_deprecated(
and a warning is issued to the user.
"""
if old_name in config:
module_name = inspect.getmodule(inspect.stack()[1][0]).__name__
module_name = inspect.getmodule(inspect.stack()[1][0]).__name__ # type: ignore
logger = logging.getLogger(module_name)
logger.warning(
"'%s' is deprecated. Please rename '%s' to '%s' in your "