mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Enable deprecated-typing-alias
check [pylint] (#63935)
This commit is contained in:
parent
2178130fba
commit
2d2944d186
@ -6,7 +6,7 @@ core: &core
|
|||||||
- homeassistant/helpers/*
|
- homeassistant/helpers/*
|
||||||
- homeassistant/package_constraints.txt
|
- homeassistant/package_constraints.txt
|
||||||
- homeassistant/util/*
|
- homeassistant/util/*
|
||||||
- pyproject.yaml
|
- pyproject.toml
|
||||||
- requirements.txt
|
- requirements.txt
|
||||||
- setup.cfg
|
- setup.cfg
|
||||||
|
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
# pylint: disable-next=deprecated-typing-alias
|
||||||
|
# Issue with Python 3.9.0 and 3.9.1 with collections.abc.Callable
|
||||||
|
# https://bugs.python.org/issue42965
|
||||||
from typing import Any, Callable, NamedTuple, Optional
|
from typing import Any, Callable, NamedTuple, Optional
|
||||||
|
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
|
@ -76,7 +76,6 @@ good-names = [
|
|||||||
# Enable once current issues are fixed:
|
# Enable once current issues are fixed:
|
||||||
# consider-using-namedtuple-or-dataclass (Pylint CodeStyle extension)
|
# consider-using-namedtuple-or-dataclass (Pylint CodeStyle extension)
|
||||||
# consider-using-assignment-expr (Pylint CodeStyle extension)
|
# consider-using-assignment-expr (Pylint CodeStyle extension)
|
||||||
# deprecated-typing-alias (temporarily while updating code to Python 3.9)
|
|
||||||
disable = [
|
disable = [
|
||||||
"format",
|
"format",
|
||||||
"abstract-class-little-used",
|
"abstract-class-little-used",
|
||||||
@ -102,7 +101,6 @@ disable = [
|
|||||||
"consider-using-f-string",
|
"consider-using-f-string",
|
||||||
"consider-using-namedtuple-or-dataclass",
|
"consider-using-namedtuple-or-dataclass",
|
||||||
"consider-using-assignment-expr",
|
"consider-using-assignment-expr",
|
||||||
"deprecated-typing-alias",
|
|
||||||
]
|
]
|
||||||
enable = [
|
enable = [
|
||||||
#"useless-suppression", # temporarily every now and then to clean them up
|
#"useless-suppression", # temporarily every now and then to clean them up
|
||||||
|
Loading…
x
Reference in New Issue
Block a user