From dd096d8ed77fc9029ed90d0382c08504078e0035 Mon Sep 17 00:00:00 2001 From: Josef Friedrich Date: Sat, 20 Jan 2024 12:09:12 +0100 Subject: [PATCH] Fix tests --- mscxyz/xml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mscxyz/xml.py b/mscxyz/xml.py index 45724ba..1374f43 100644 --- a/mscxyz/xml.py +++ b/mscxyz/xml.py @@ -3,7 +3,7 @@ import typing from io import TextIOWrapper from pathlib import Path -from typing import Literal, Optional +from typing import Literal, Optional, Union import lxml import lxml.etree @@ -15,7 +15,7 @@ ListExtension = Literal["mscz", "mscx", "both"] -ElementLike = _Element | _ElementTree | None +ElementLike = Optional[Union[_Element, _ElementTree, None]] class Xml: