From 5fb229c09fd3b61c5d046771abef2a46c791b3ef Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Mon, 29 Jul 2024 21:50:44 -0700 Subject: [PATCH] improve type annotations --- g85/write.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: