redis / redis-om-python

Object mapping, and more, for Redis and Python
MIT License
1.06k stars 108 forks source link

add `default` parametter to `HashModel.get` #551

Open b-simjoo opened 11 months ago

b-simjoo commented 11 months ago

Hi, I added new constant value __INCOMPLETE as default value for optional parameters and then added a new optional parameter named default to get function. When user pass value to default parameter (including None and Ellipsis) then if key not exist it will return default, otherwise it raises NotFoundError