First version of DefaultDataFilter
This commit is contained in:
@@ -50,6 +50,9 @@ class Expando:
|
||||
def to_dict(self, mappings: dict) -> dict:
|
||||
return {prop_name: self.get(path) for path, prop_name in mappings.items() if prop_name is not None}
|
||||
|
||||
def __hasattr__(self, item):
|
||||
return item in self._props
|
||||
|
||||
def __repr__(self):
|
||||
if "key" in self._props:
|
||||
return f"Expando(key={self._props["key"]})"
|
||||
|
||||
Reference in New Issue
Block a user