Isort preparations (#16555)
* Don't treat typing as an "in-between" module for import order That was a < 3.5 era thing. * Tighten scope of some pylint unused-import disables To avoid isort moving a top level one around, undesirably broadening its scope.
This commit is contained in:
1 parent
a059cc860a
commit
ee696643cd
26 files changed
+10
-35
No files matched your search
@@ -6,7 +6,6 @@ https://home-assistant.io/components/apple_tv/
|
||||
"""
|
||||
import asyncio
|
||||
import logging
|
||||
|
||||
from typing import Sequence, TypeVar, Union
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
@@ -8,7 +8,6 @@ import logging
|
||||
import random
|
||||
from datetime import timedelta
|
||||
from math import pi, cos, sin, radians
|
||||
|
||||
from typing import Optional
|
||||
|
||||
from homeassistant.components.geo_location import GeoLocationEvent
|
||||
|
||||
@@ -6,6 +6,7 @@ https://home-assistant.io/components/google_assistant/
|
||||
"""
|
||||
import asyncio
|
||||
import logging
|
||||
from typing import Dict, Any
|
||||
|
||||
import aiohttp
|
||||
import async_timeout
|
||||
@@ -14,7 +15,6 @@ import voluptuous as vol
|
||||
|
||||
# Typing imports
|
||||
from homeassistant.core import HomeAssistant
|
||||
from typing import Dict, Any
|
||||
|
||||
from homeassistant.const import CONF_NAME
|
||||
from homeassistant.helpers import config_validation as cv
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
"""Google Assistant OAuth View."""
|
||||
|
||||
import logging
|
||||
from typing import Dict, Any
|
||||
|
||||
# Typing imports
|
||||
# if False:
|
||||
from aiohttp.web import Request, Response
|
||||
from typing import Dict, Any
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.components.http import HomeAssistantView
|
||||
|
||||
@@ -7,7 +7,6 @@ https://home-assistant.io/components/media_player.cast/
|
||||
import asyncio
|
||||
import logging
|
||||
import threading
|
||||
|
||||
from typing import Optional, Tuple
|
||||
|
||||
import attr
|
||||
|
||||
@@ -8,9 +8,7 @@ import asyncio
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
from urllib.parse import urlparse
|
||||
|
||||
# pylint: disable=unused-import
|
||||
from typing import Dict # noqa: F401
|
||||
from typing import Dict # noqa: F401 pylint: disable=unused-import
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
|
||||
@@ -6,10 +6,10 @@ https://home-assistant.io/components/rachio/
|
||||
"""
|
||||
import asyncio
|
||||
import logging
|
||||
from typing import Optional
|
||||
|
||||
from aiohttp import web
|
||||
import voluptuous as vol
|
||||
from typing import Optional
|
||||
from homeassistant.auth.util import generate_secret
|
||||
from homeassistant.components.http import HomeAssistantView
|
||||
from homeassistant.const import CONF_API_KEY, EVENT_HOMEASSISTANT_STOP, URL_API
|
||||
|
||||
@@ -15,7 +15,6 @@ import logging
|
||||
import queue
|
||||
import threading
|
||||
import time
|
||||
|
||||
from typing import Any, Dict, Optional # noqa: F401
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
Reference in new issue
Block a user