1- import json
21import datetime
2+ import json
33from collections .abc import Callable , Collection , Iterator , Sequence
44from decimal import Decimal
55from re import Pattern
@@ -14,7 +14,7 @@ from django.forms.forms import BaseForm
1414from django .forms .widgets import Widget
1515from django .utils .choices import CallableChoiceIterator , _ChoicesCallable , _ChoicesInput
1616from django .utils .datastructures import _PropertyDescriptor
17- from django .utils .functional import _StrOrPromise , SimpleLazyObject
17+ from django .utils .functional import SimpleLazyObject , _StrOrPromise
1818from typing_extensions import Self , override
1919
2020# Problem: attribute `widget` is always of type `Widget` after field instantiation.
@@ -621,7 +621,12 @@ class JSONField(CharField):
621621 widget : _ClassLevelWidgetT
622622 encoder : type [json .JSONEncoder ] | None
623623 decoder : type [json .JSONDecoder ] | None
624- def __init__ (self , encoder : type [json .JSONEncoder ] | None = None , decoder : type [json .JSONDecoder ] | None = None , ** kwargs : Any ) -> None : ...
624+ def __init__ (
625+ self ,
626+ encoder : type [json .JSONEncoder ] | None = None ,
627+ decoder : type [json .JSONDecoder ] | None = None ,
628+ ** kwargs : Any ,
629+ ) -> None : ...
625630 @override
626631 def to_python (self , value : Any ) -> Any : ...
627632 @override
0 commit comments