MCPcopy Index your code
hub / github.com/pyinvoke/invoke / load_defaults

Method load_defaults

invoke/config.py:662–678  ·  view source on GitHub ↗

Set or replace the 'defaults' configuration level, from ``data``. :param dict data: The config data to load as the defaults level. :param bool merge: Whether to merge the loaded data into the central config. Default: ``True``. :returns: ``N

(self, data: Dict[str, Any], merge: bool = True)

Source from the content-addressed store, hash-verified

660 self.load_user(merge=False)
661
662 def load_defaults(self, data: Dict[str, Any], merge: bool = True) -> None:
663 """
664 Set or replace the 'defaults' configuration level, from ``data``.
665
666 :param dict data: The config data to load as the defaults level.
667
668 :param bool merge:
669 Whether to merge the loaded data into the central config. Default:
670 ``True``.
671
672 :returns: ``None``.
673
674 .. versionadded:: 1.0
675 """
676 self._set(_defaults=data)
677 if merge:
678 self.merge()
679
680 def load_overrides(self, data: Dict[str, Any], merge: bool = True) -> None:
681 """

Calls 2

mergeMethod · 0.95
_setMethod · 0.80

Tested by

no test coverage detected