verdict.py
def from_class_and_args( cls, contained_cls, args, default_args={}, ):
        '''Alternate constructor. Creates a Dict of contained_cls objects,
        with arguments passed to it from the dictionary created by
        defaults and variations.

        Args:
            contained_cls (type of object/constructor):
                What class should the smart dict consist of?

            args (dict/other):
                Arguments that should be passed to contained_cls. If not a
                dict, assumed to be the first and only argument for
                the constructor.

            default_args:
                Default arguments to fill in args

        Returns:
            Dict:
                The constructed instance.
        '''

        kwargs = dict_from_defaults_and_variations( default_args, args )

        storage = {}
        for key in kwargs.keys():
            if isinstance( kwargs[key], dict ):
                storage[key] = contained_cls( **kwargs[key] )
            else:
                storage[key] = contained_cls( kwargs[key] )

        return cls( storage )
Alternate constructor. Creates a Dict of contained_cls objects,
        with arguments passed to it from the dictionary created by
        defaults and variations.

        Args:
            contained_cls (type of object/constructor):
                What class should the smart dict consist of?

            args (dict/other):
                Arguments that should be passed to contained_cls. If not a
                dict, assumed to be the first and only argument for
                the constructor.

            default_args:
                Default arguments to fill in args

        Returns:
            Dict:
                The constructed instance.
        
Alternate constructor. Creates a Dict of contained_cls objects,
with arguments passed to it from the dictionary created by
defaults and variations.
Alternate constructor . Creates a Dict of contained_cls objects with arguments passed to it from the dictionary created by defaults and variations .
def from_class_and_args( cls, contained_cls, args, default_args={}, ):
        kwargs = dict_from_defaults_and_variations( default_args, args )
        storage = {}
        for key in kwargs.keys():
            if isinstance( kwargs[key], dict ):
                storage[key] = contained_cls( **kwargs[key] )
            else:
                storage[key] = contained_cls( kwargs[key] )
        return cls( storage )
def from_class_and_args ( cls , contained_cls , args , default_args = { } , ) : kwargs = dict_from_defaults_and_variations ( default_args , args ) storage = { } for key in kwargs . keys ( ) : if isinstance ( kwargs [ key ] , dict ) : storage [ key ] = contained_cls ( ** kwargs [ key ] ) else : storage [ key ] = contained_cls ( kwargs [ key ] ) return cls ( storage )
Alternate constructor.
Alternate constructor .
'''Alternate constructor. Creates a Dict of contained_cls objects,
        with arguments passed to it from the dictionary created by
        defaults and variations.

        Args:
            contained_cls (type of object/constructor):
                What class should the smart dict consist of?

            args (dict/other):
                Arguments that should be passed to contained_cls. If not a
                dict, assumed to be the first and only argument for
                the constructor.

            default_args:
                Default arguments to fill in args

        Returns:
            Dict:
                The constructed instance.
        '''
The constructed instance.
The constructed instance .
Dict
cls
contained_cls
None
args
Arguments that should be passed to contained_cls. If not a
dict, assumed to be the first and only argument for
the constructor.
Arguments that should be passed to contained_cls . If not a dict assumed to be the first and only argument for the constructor .
default_args
Default arguments to fill in args
Default arguments to fill in args