hierarkey/models.py
def add_default(self, key: str, value: Optional[str], default_type: type = str) -> None:
        """
        Adds a default value and a default type for a key.

        :param key: Key
        :param value: *Serialized* default value, i.e. a string or ``None``.
        :param default_type: The type to deserialize values for this key to, defaults to ``str``.
        """
        self.defaults[key] = HierarkeyDefault(value, default_type)

        Adds a default value and a default type for a key.

        :param key: Key
        :param value: *Serialized* default value, i.e. a string or ``None``.
        :param default_type: The type to deserialize values for this key to, defaults to ``str``.
        
Adds a default value and a default type for a key.
Adds a default value and a default type for a key .
def add_default(self, key: str, value: Optional[str], default_type: type = str) -> None:
        self.defaults[key] = HierarkeyDefault(value, default_type)
def add_default ( self , key : str , value : Optional [ str ] , default_type : type = str ) -> None : self . defaults [ key ] = HierarkeyDefault ( value , default_type )
Adds a default value and a default type for a key.
Adds a default value and a default type for a key .
"""
        Adds a default value and a default type for a key.

        :param key: Key
        :param value: *Serialized* default value, i.e. a string or ``None``.
        :param default_type: The type to deserialize values for this key to, defaults to ``str``.
        """
self
key
str
None
value
Optional[str]
Serialized* default value, i.e. a string or ``None``.
Serialized * default value i . e . a string or ` ` None ` ` .
default_type
type
The type to deserialize values for this key to, defaults to ``str``.
The type to deserialize values for this key to defaults to ` ` str ` ` .
``str``