From 4647e2b8663cbd22a07af70bf0f8540946763851 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sun, 11 May 2025 23:07:47 +0200 Subject: Refs #36383 -- Extended DeconstructibleSerializer to support non-identifier keyword arguments. In Python, keyword arguments must normally be valid identifiers (i.e., variable names that follow Python's naming rules). However, Python dicts can have keys that aren't valid identifiers, like "foo-bar" or "123foo". This commit ensures that keyword arguments that are nt valid identifiers, are properly handled when deconstructing an object. --- docs/releases/6.0.txt | 3 +++ docs/spelling_wordlist | 1 + 2 files changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/6.0.txt b/docs/releases/6.0.txt index 341da6fd68..611530bb0a 100644 --- a/docs/releases/6.0.txt +++ b/docs/releases/6.0.txt @@ -181,6 +181,9 @@ Migrations * Migrations now support serialization of :class:`zoneinfo.ZoneInfo` instances. +* Serialization of deconstructible objects now supports keyword arguments with + names that are not valid Python identifiers. + Models ~~~~~~ diff --git a/docs/spelling_wordlist b/docs/spelling_wordlist index e9441c62d9..6028f103e4 100644 --- a/docs/spelling_wordlist +++ b/docs/spelling_wordlist @@ -113,6 +113,7 @@ databrowse datafile datetimes declaratively +deconstructible deduplicates deduplication deepcopy -- cgit v1.3