style(entity): improve code style and consistency in Entity class

- Change `save` method signature to use keyword-only argument
This commit is contained in:
serbanPricop 2024-10-14 23:30:19 +03:00
parent 29ceb87434
commit e3ae5b516d

View file

@ -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()