From 6b3250673937b105af44f2f14247e56876f8dbe1 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Wed, 5 Mar 2025 19:00:37 +0200 Subject: [PATCH] Fixes #36215 -- Included unpacking generalization notes in coding style guide (PEP-448). --- docs/internals/contributing/writing-code/coding-style.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/internals/contributing/writing-code/coding-style.txt b/docs/internals/contributing/writing-code/coding-style.txt index 20605aef56..c7502985b6 100644 --- a/docs/internals/contributing/writing-code/coding-style.txt +++ b/docs/internals/contributing/writing-code/coding-style.txt @@ -127,6 +127,10 @@ Python style """ ... +* Where applicable, use unpacking generalizations compliant with :pep:`448`, + such as merging mappings (``{**x, **y}``) or sequences (``[*a, *b]``). This + improves performance, readability, and maintainability while reducing errors. + .. _coding-style-imports: Imports