It looks like we have a few places where the __init__ skips the MongoStore.__init__ which can leave some flags like safe_update unset.
|
super(MongoStore, self).__init__(**kwargs) # lgtm |
It's not clear to me why we use super(MongoStore, self) here instead of super(). Perhaps it allow more fine-grained re-work of some of the initialization behavior, but it does create some weird edge cases that are hard to catch.
It looks like we have a few places where the
__init__skips theMongoStore.__init__which can leave some flags likesafe_updateunset.maggma/src/maggma/stores/mongolike.py
Line 478 in 0d7bb46
It's not clear to me why we use
super(MongoStore, self)here instead ofsuper(). Perhaps it allow more fine-grained re-work of some of the initialization behavior, but it does create some weird edge cases that are hard to catch.