def setdefault ( self , name : str , default : Any = None ) -> Any : return self . __dict__ . setdefault ( name , default )
python setting a default value for an attribute
Set an attribute with a default value .
def setdefault(self, name: str, default: Any=None) -> Any:
        """Set an attribute with a default value."""
        return self.__dict__.setdefault(name, default)