From b2ed7546fd009abb3a52b3ee5dcf81ad16bd77a5 Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Wed, 24 Nov 2021 22:53:38 -0500 Subject: [PATCH] Fix using dict constructor instead of literal in JSON field --- peewee_plus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peewee_plus.py b/peewee_plus.py index 6fe4114..60b3e06 100644 --- a/peewee_plus.py +++ b/peewee_plus.py @@ -254,8 +254,8 @@ class JSONField(peewee.TextField): **kwargs, ): super().__init__(*args, **kwargs) - self.dump_params = dump_params or dict() - self.load_params = load_params or dict() + self.dump_params = dump_params or {} + self.load_params = load_params or {} def db_value(self, value: Any) -> str: try: