diff --git a/fastkml/styles.py b/fastkml/styles.py index 8d23edef..5ac99055 100644 --- a/fastkml/styles.py +++ b/fastkml/styles.py @@ -334,7 +334,7 @@ def _get_kwargs( href = icon.find(f"{ns}href") if href is not None: kwargs["icon_href"] = href.text - kwargs["hot_spot"] = HotSpot.class_from_element( # type: ignore[attr-defined] + kwargs["hot_spot"] = HotSpot.class_from_element( ns=ns, name_spaces=name_spaces, element=element,