From e3ae5b516d4fd817d022ffebed799d5c261e8a83 Mon Sep 17 00:00:00 2001 From: serbanPricop Date: Mon, 14 Oct 2024 23:30:19 +0300 Subject: [PATCH] style(entity): improve code style and consistency in Entity class - Change `save` method signature to use keyword-only argument --- eav/models/entity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eav/models/entity.py b/eav/models/entity.py index b941a78..f9d5ac1 100644 --- a/eav/models/entity.py +++ b/eav/models/entity.py @@ -99,7 +99,7 @@ class Entity: """ return self.__dict__[attribute_slug] - def save(self, commit=True): + def save(self, *, commit=True): """Saves all the EAV values that have been set on this entity.""" values = {} attributes = self.get_all_attributes()