mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Update ruff to 0.12.0 (#147106)
This commit is contained in:
@ -117,9 +117,7 @@ def _get_neighbours(ndb: NDB) -> dict[str, Neighbour]:
|
||||
def _get_routes_and_neighbors():
|
||||
"""Get the routes and neighbours from pyroute2."""
|
||||
# Import in the executor since import NDB can take a while
|
||||
from pyroute2 import ( # pylint: disable=no-name-in-module, import-outside-toplevel
|
||||
NDB,
|
||||
)
|
||||
from pyroute2 import NDB # pylint: disable=no-name-in-module # noqa: PLC0415
|
||||
|
||||
with NDB() as ndb:
|
||||
routes, reverse_routes = _get_possible_thread_routes(ndb)
|
||||
|
Reference in New Issue
Block a user