__all__ = ["DataDict"]



class DataDict(dict):
    """A class representing data."""

    def __init__(self):
        pass
        
    def get(self, getters):
        """Add keys by calling some functions.
        
        :param getters: a list of dicts containing the key, the callable 
        and the parameters for the callable
        
        :type getters: list
        
        :Example:
        
        .. code-block:: python
        
            def callable(a, b):
                return [a, b]
                
            data = DataDict()
            
            # data is {}
            
            a = "a"
            b = "b"
            
            getters = [{
                "key": "key",
                "callable": callable,
                "params": (a, b)
            }]
            
            data.get(getters)
            
            # data is {"key": ["a", "b"]}
        """
        
        for getter in getters:
            self[getter["key"]] = getter["callable"](*getter["params"])

@@ -368,536 +368,8 @@
 ist%0A
-        %0A        :Example:%0A        %0A        .. code-block:: python%0A        %0A            def callable(a, b):%0A                return %5Ba, b%5D%0A                %0A            data = DataDict()%0A            %0A            # data is %7B%7D%0A            %0A            a = %22a%22%0A            b = %22b%22%0A            %0A            getters = %5B%7B%0A                %22key%22: %22key%22,%0A                %22callable%22: callable,%0A                %22params%22: (a, b)%0A            %7D%5D%0A            %0A            data.get(getters)%0A            %0A            # data is %7B%22key%22: %5B%22a%22, %22b%22%5D%7D%0A
     

Remove example from docstring