From 735e37e10ef4f5a6d9f6f9070c30476d98d4670b Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 14 Sep 2020 13:32:06 +0100 Subject: [PATCH] Revert is_horizons to `modules: MAP_STR_ANY` as it works --- plugins/eddn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index 63e1830b..d0e7c384 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -752,7 +752,7 @@ def cmdr_data(data: Mapping[str, Any], is_beta: bool) -> str: MAP_STR_ANY = Mapping[str, Any] -def is_horizons(economies: MAP_STR_ANY, modules: Dict, ships: MAP_STR_ANY) -> bool: +def is_horizons(economies: MAP_STR_ANY, modules: MAP_STR_ANY, ships: MAP_STR_ANY) -> bool: return ( any(economy['name'] == 'Colony' for economy in economies.values()) or any(module.get('sku') == HORIZ_SKU for module in modules.values()) or