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:
parent
77654da341
commit
fde128d66c
11 changed files with 25 additions and 19 deletions
|
@ -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 "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue