Skip to content

Commit

Permalink
fix mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Jan 7, 2024
1 parent 53ac989 commit 07fd0d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastkml/kml.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def etree_element(
if not self.ns:
root = config.etree.Element(f"{self.ns}kml") # type: ignore[attr-defined]
root.set("xmlns", config.KMLNS[1:-1])
elif hasattr(config.etree, "LXML_VERSION"):
elif hasattr(config.etree, "LXML_VERSION"): # type: ignore[attr-defined]
root = config.etree.Element( # type: ignore[attr-defined]
f"{self.ns}kml",
nsmap={None: self.ns[1:-1]},
Expand Down

0 comments on commit 07fd0d6

Please sign in to comment.