Skip to content

Commit

Permalink
Merge pull request #1078 from tefra/release-24-9
Browse files Browse the repository at this point in the history
Releasing 24.9
  • Loading branch information
tefra authored Sep 21, 2024
2 parents cff2df1 + 3d196cf commit 534857b
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ repos:
- id: end-of-file-fixer
- id: debug-statements
- repo: https://github.com/crate-ci/typos
rev: v1.23.5
rev: v1.24.6
hooks:
- id: typos
exclude: ^tests/|.xsd|xsdata/models/datatype.py$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.5
rev: v0.6.6
hooks:
- id: ruff
args: [ --fix, --show-fixes]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.0
rev: v1.11.2
hooks:
- id: mypy
files: ^(xsdata/)
Expand Down
12 changes: 12 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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**
Expand Down
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
4 changes: 2 additions & 2 deletions tests/fixtures/wrapper/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

obj = Wrapper(
alpha='ααα',
bravo=iter([
bravo=[
1,
2,
]),
],
charlie=[
Charlie(
value='δδδ',
Expand Down
4 changes: 4 additions & 0 deletions tests/utils/test_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
2 changes: 1 addition & 1 deletion xsdata/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "24.7"
__version__ = "24.9"

0 comments on commit 534857b

Please sign in to comment.