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:
@@ -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*$")
|
||||
|
||||
Reference in New Issue
Block a user