1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Refs #28909 -- Simplified code using unpacking generalizations.

This commit is contained in:
Aarni Koskela
2025-03-05 18:45:10 +02:00
committed by nessita
parent 6888375c53
commit c972af69e2
40 changed files with 77 additions and 72 deletions

View File

@@ -10,7 +10,7 @@ from django.db.models import Index
from django.utils.regex_helper import _lazy_re_compile
FieldInfo = namedtuple(
"FieldInfo", BaseFieldInfo._fields + ("pk", "has_json_constraint")
"FieldInfo", [*BaseFieldInfo._fields, "pk", "has_json_constraint"]
)
field_size_re = _lazy_re_compile(r"^\s*(?:var)?char\s*\(\s*(\d+)\s*\)\s*$")