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

Method update

invoke/config.py:297–310  ·  view source on GitHub ↗
(self, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

295 return ret
296
297 def update(self, *args: Any, **kwargs: Any) -> None:
298 if kwargs:
299 for key, value in kwargs.items():
300 self[key] = value
301 elif args:
302 # TODO: complain if arity>1
303 arg = args[0]
304 if isinstance(arg, dict):
305 for key in arg:
306 self[key] = arg[key]
307 else:
308 # TODO: be stricter about input in this case
309 for pair in arg:
310 self[pair[0]] = pair[1]
311
312
313class Config(DataProxy):

Callers 3

get_argumentsMethod · 0.45
cloneMethod · 0.45
_crawlMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected