mirror of
https://github.com/django/django.git
synced 2025-07-06 02:39:12 +00:00
[5.2.x] Fixes #36215 -- Included unpacking generalization notes in coding style guide (PEP-448).
Backport of 6b3250673937b105af44f2f14247e56876f8dbe1 from main.
This commit is contained in:
parent
0dba888d0c
commit
0581ec2f1a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user