mirror of
https://github.com/esphome/esphome.git
synced 2025-09-16 10:12:21 +01:00
Remove a bunch of unnecessary pylint disabling (#4079)
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
# pylint: disable=unused-import
|
||||
from typing import Optional
|
||||
|
||||
from esphome.config import load_config, _format_vol_invalid, Config
|
||||
from esphome.core import CORE, DocumentRange
|
||||
import esphome.config_validation as cv
|
||||
|
||||
# pylint: disable=unused-import, wrong-import-order
|
||||
from typing import Optional
|
||||
|
||||
|
||||
def _get_invalid_range(res: Config, invalid: cv.Invalid) -> Optional[DocumentRange]:
|
||||
return res.get_deepest_document_range_for_path(
|
||||
|
Reference in New Issue
Block a user