function

language.node

def node(_: type[T]) -> type[T]

Uses a template :class:`ConfigNode` to define an OmegaConf node that has the same fields as the template.

The type checker will treat the resulting object as a :class:`ConfigNode`, but at runtime the resulting object is a regular OmegaConf node based on the fields of the template — see the module docstring for the lie-typing contract.

Source: laco/language.py:548