Skip to content

Commit

Permalink
Fix encoder and decoder params on JSONField
Browse files Browse the repository at this point in the history
  • Loading branch information
zetahernandez committed Dec 2, 2022
1 parent 9672ba7 commit 7dd39dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rest_framework-stubs/fields.pyi
Expand Up @@ -641,8 +641,8 @@ class HStoreField(DictField):

class JSONField(Field[dict[str, Any] | list[dict[str, Any]], dict[str, Any] | list[dict[str, Any]], str, Any]):
binary: bool
encoder: JSONEncoder | None
decoder: JSONDecoder | None
encoder: type[JSONEncoder] | None
decoder: type[JSONDecoder] | None
def __init__(
self,
read_only: bool = ...,
Expand All @@ -659,8 +659,8 @@ class JSONField(Field[dict[str, Any] | list[dict[str, Any]], dict[str, Any] | li
allow_null: bool = ...,
*,
binary: bool = ...,
encoder: JSONEncoder | None = ...,
decoder: JSONDecoder | None = ...,
encoder: type[JSONEncoder] | None = ...,
decoder: type[JSONDecoder] | None = ...,
): ...

class ReadOnlyField(Field): ...
Expand Down

0 comments on commit 7dd39dc

Please sign in to comment.