Skip to content

Commit

Permalink
Change default values for optional_fields and required_fields
Browse files Browse the repository at this point in the history
Unify to be the empty set (instead of None).

Signed-off-by: Tormod Haugland <[email protected]>
  • Loading branch information
tOgg1 committed Oct 26, 2023
1 parent 18037a8 commit 38c9dde
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions graphene_django_cud/mutations/batch_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def __init_subclass_with_meta__(
cls,
_meta=None,
model=None,
optional_fields=None,
required_fields=None,
optional_fields=(),
required_fields=(),
type_name=None,
**kwargs,
):
Expand Down
2 changes: 1 addition & 1 deletion graphene_django_cud/mutations/filter_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init_subclass_with_meta__(
only_fields=(), # Deprecated in favor of `fields`
exclude=(),
exclude_fields=(), # Deprecated in favor of `exclude`
optional_fields=None,
optional_fields=(),
required_fields=(),
field_types=None,
auto_context_fields=None,
Expand Down
4 changes: 2 additions & 2 deletions graphene_django_cud/mutations/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def __init_subclass_with_meta__(
cls,
_meta=None,
model=None,
optional_fields=None,
required_fields=None,
optional_fields=(),
required_fields=(),
type_name=None,
**kwargs,
):
Expand Down

0 comments on commit 38c9dde

Please sign in to comment.