diff --git a/g85/write.py b/g85/write.py index 6960823..ebd07ae 100644 --- a/g85/write.py +++ b/g85/write.py @@ -1,4 +1,5 @@ -from typing import Sequence, TextIO, cast +from typing import TextIO, cast +from collections.abc import Sequence import logging import math from dataclasses import fields @@ -15,7 +16,7 @@ class G85Error(Exception): # Hack to directly pass through -def _escape_cdata(text): +def _escape_cdata(text: str) -> str: if text.startswith(''): return text else: