diff --git a/NEWS b/NEWS index 5ff84ed5..4b2b1714 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,4 @@ -* Sat Feb 14 2026 Satoru SATOH - 0.15.0-1 +* Mon Feb 16 2026 Satoru SATOH - 0.15.0-1 - fix/change: migrate test cases from unittest.TestCase to pytest based with new test data loader (#173) - fix: enable all rules by ruff linter by default @@ -70,6 +70,9 @@ - fix: workaround to suppress a flake8-bugbear error - fix: workaround to suppress a mypy error - fix: workaround to suppress errors only happen with tomllib +- fix: remove rpm related hack as bdist_rpm was deprecated in the latest setuptools +- fix: [tox] add missing dependencies in srpm target +- fix: [rpm] add hack to avoid false-positive errors in pyproject.toml - change: drop python 3.8.x support - change: enable all ruff rules with minimal exceptions - change: add new requirements.txt to list tox-uv @@ -97,6 +100,7 @@ - refactor: simplify test cases for anyconfig.backend.base.*Mixin.*open with pytest.mark.parametrize - enhancement: add azure-pipelines.yml for Azure Pipelines +- enhancement: add a script to build SRPM fom src dist and pkg/package.spec.in * Sun Jan 14 2024 Satoru SATOH - 0.14.0-1 - change: drop the support py37 and add py311 diff --git a/src/anyconfig/backend/xml/etree.py b/src/anyconfig/backend/xml/etree.py index e2565a01..fb6f28cb 100644 --- a/src/anyconfig/backend/xml/etree.py +++ b/src/anyconfig/backend/xml/etree.py @@ -554,7 +554,7 @@ class Parser(base.Parser, base.ToStreamDumperMixin): _open_write_mode: typing.ClassVar[str] = "wb" def load_from_string( - self, content: typing.AnyStr, container: GenDicType, + self, content: str | bytes, container: GenDicType, **opts: typing.Any, ) -> DicType: """Load config from XML snippet (a string 'content').