mirror of
https://github.com/django/django.git
synced 2025-11-26 13:42:08 +00:00
Fixes #36215 -- Included unpacking generalization notes in coding style guide (PEP-448).
This commit is contained in:
parent
c972af69e2
commit
6b32506739
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
.. _coding-style-imports:
|
||||||
|
|
||||||
Imports
|
Imports
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue