From 3d196cf65daf3023fa1b208e8fae2da73c9aa732 Mon Sep 17 00:00:00 2001 From: Christodoulos Tsoulloftas Date: Sat, 21 Sep 2024 15:38:41 +0300 Subject: [PATCH] Bump version v24.9 --- CHANGES.md | 12 ++++++++++++ README.md | 16 +++++++--------- tests/fixtures/wrapper/sample.py | 4 ++-- tests/utils/test_collections.py | 4 ++++ xsdata/__init__.py | 2 +- 5 files changed, 26 insertions(+), 12 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 792fa97af..87b071586 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,15 @@ +## 24.9 (2024-09-21) + +**Fixes** + +- Fix typing annotations deprecation warning in Python 3.13 + ([#1077](https://github.com/tefra/xsdata/pull/1077)) + +**Features** + +- Allow generators as array elements + ([#1074](https://github.com/tefra/xsdata/pull/1074)) + ## 24.7 (2024-07-28) **Features** diff --git a/README.md b/README.md index 8cf7bd6be..1ea02b3f2 100644 --- a/README.md +++ b/README.md @@ -74,16 +74,14 @@ Check the [documentation](https://xsdata.readthedocs.io) for more ✨✨✨ - Support xinclude statements and unknown properties - Customize behaviour through config -## Changelog: 24.7 (2024-07-28) +## Changelog: 24.9 (2024-09-21) -**Features** +**Fixes** -- Improve XML parsing performance on union elements with fixed attributes - ([#1066](https://github.com/tefra/xsdata/pull/1066)) -- Skip optional and nillable elements on XML Serializer - ([#1066](https://github.com/tefra/xsdata/pull/1066)) +- Fix typing annotations deprecation warning in Python 3.13 + ([#1077](https://github.com/tefra/xsdata/pull/1077)) -**Fixes** +**Features** -- Reset attr types derived from missing simple types - ([#1062](https://github.com/tefra/xsdata/pull/1062)) +- Allow generators as array elements + ([#1074](https://github.com/tefra/xsdata/pull/1074)) diff --git a/tests/fixtures/wrapper/sample.py b/tests/fixtures/wrapper/sample.py index 30faf9dc1..e9ff6726a 100644 --- a/tests/fixtures/wrapper/sample.py +++ b/tests/fixtures/wrapper/sample.py @@ -4,10 +4,10 @@ obj = Wrapper( alpha='ααα', - bravo=iter([ + bravo=[ 1, 2, - ]), + ], charlie=[ Charlie( value='δδδ', diff --git a/tests/utils/test_collections.py b/tests/utils/test_collections.py index 866a759b9..2d460a7db 100644 --- a/tests/utils/test_collections.py +++ b/tests/utils/test_collections.py @@ -27,11 +27,15 @@ def test_remove(self): def test_is_array(self): fixture = namedtuple("fixture", ["a", "b"]) + def foo(): + yield 1 + self.assertFalse(collections.is_array(1)) self.assertFalse(collections.is_array(fixture(1, 2))) self.assertTrue(collections.is_array([])) self.assertTrue(collections.is_array(())) self.assertTrue(collections.is_array(frozenset())) + self.assertTrue(collections.is_array(foo())) def test_connected_components(self): lists = [[1, 2, 3], [4], [3, 4], [6]] diff --git a/xsdata/__init__.py b/xsdata/__init__.py index 60b8485d7..b73ba54f5 100644 --- a/xsdata/__init__.py +++ b/xsdata/__init__.py @@ -1 +1 @@ -__version__ = "24.7" +__version__ = "24.9"