warg.gdkc.GeneralisedDelayedKwargConstruction

class warg.gdkc.GeneralisedDelayedKwargConstruction(constructor: Callable, *args: Any, **kwargs: Any)[source]

Bases: object

A generalised class for setting up kwargs for later construction of an instance of an object [constructor, args, kwargs]

__init__(constructor: Callable, *args: Any, **kwargs: Any)[source]

[constructor, args, kwargs]

Parameters:
  • constructor – The delayed callable, to be evaluated at __call__ or context __enter__

  • args – arguments to use for evaluation, If only one is provided and is of typing mapping, it is assumed to be directly kwargs

  • kwargs – arguments to use for evaluation

Methods

__init__(constructor, *args, **kwargs)

[constructor, args, kwargs]