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

Method config

invoke/context.py:83–97  ·  view source on GitHub ↗

The fully merged `.Config` object appropriate for this context. `.Config` settings (see their documentation for details) may be accessed like dictionary keys (``c.config['foo']``) or object attributes (``c.config.foo``). As a convenience shorthand, the `.Co

(self)

Source from the content-addressed store, hash-verified

81
82 @property
83 def config(self) -> Config:
84 """
85 The fully merged `.Config` object appropriate for this context.
86
87 `.Config` settings (see their documentation for details) may be
88 accessed like dictionary keys (``c.config['foo']``) or object
89 attributes (``c.config.foo``).
90
91 As a convenience shorthand, the `.Context` object proxies to its
92 ``config`` attribute in the same way - e.g. ``c['foo']`` or
93 ``c.foo`` returns the same value as ``c.config['foo']``.
94 """
95 # Allows Context to expose a .config attribute even though DataProxy
96 # otherwise considers it a config key.
97 return self._config
98
99 @config.setter
100 def config(self, value: Config) -> None:

Callers

nothing calls this directly

Calls 1

_setMethod · 0.80

Tested by

no test coverage detected