From e691e58a05d731edb690747c85777fe1f60efa60 Mon Sep 17 00:00:00 2001 From: Vinit Kumar Date: Wed, 4 Jan 2023 00:17:06 +0530 Subject: [PATCH] fix: ci issue due to mypy update on python3.11 --- json2xml/dicttoxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json2xml/dicttoxml.py b/json2xml/dicttoxml.py index 5a950753..a15c54a2 100755 --- a/json2xml/dicttoxml.py +++ b/json2xml/dicttoxml.py @@ -247,7 +247,7 @@ def dict2xml_str( attr = item.pop("@attrs", attr) # update attr with custom @attr if exists rawitem = item["@val"] if "@val" in item else item if is_primitive_type(rawitem): - if type(rawitem) == str or numbers.Number: + if type(rawitem) == str: subtree = escape_xml(rawitem) else: subtree = rawitem