Skip to content

Commit

Permalink
Correct type hints for models.JSONField.from_db_value
Browse files Browse the repository at this point in the history
  • Loading branch information
angryfoxx authored Jan 3, 2025
1 parent 189f05e commit 16635d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django-stubs/db/models/fields/json.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class JSONField(CheckFieldDefaultMixin, Field[_ST, _GT]):
decoder: type[json.JSONDecoder] | None = None,
**kwargs: Any,
) -> None: ...
def from_db_value(self, value: str | None, expression: Expression, connection: BaseDatabaseWrapper) -> Any: ...
def from_db_value(self, value: str | None, expression: Expression, connection: BaseDatabaseWrapper) -> dict[str, Any] | str | None: ...

class DataContains(PostgresOperatorLookup): ...
class ContainedBy(PostgresOperatorLookup): ...
Expand Down

0 comments on commit 16635d8

Please sign in to comment.