diff --git a/inventory_provider/routes/poller.py b/inventory_provider/routes/poller.py index 0bbbc3b8d98a8194576507c5a71a872705bfdc86..bfa4844d1399c1ea73b9a07efef4a9f5f7f9d47d 100644 --- a/inventory_provider/routes/poller.py +++ b/inventory_provider/routes/poller.py @@ -74,6 +74,7 @@ import json import logging import re from functools import partial +from typing import Dict from flask import Blueprint, Response, current_app, request, jsonify @@ -914,7 +915,7 @@ def interfaces(hostname=None): return Response(result, mimetype="application/json") -def get_netdash_equipment() -> dict[str, str]: +def get_netdash_equipment() -> Dict[str, str]: """Get the netdash equipment mapping from redis.""" current_redis = common.get_current_redis() return json.loads(current_redis.get('netdash').decode('utf-8'))