Update python version used for pylint [Py310] (#86414)

* Update python version used for pylint linting [Py310]

* Import Callable from collections.abc [Py310]

* Use builtin anext [Py310]
This commit is contained in:
Marc Mueller 2023-01-23 07:56:15 +01:00 committed by GitHub
parent 45b4b0e990
commit d7dda6bee5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 18 additions and 20 deletions

View file

@ -2,11 +2,9 @@
from __future__ import annotations
import asyncio
from collections.abc import Callable
import logging
# 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, NamedTuple, Optional
from homeassistant.core import CALLBACK_TYPE, HomeAssistant, callback