MCPcopy Create free account
hub / github.com/BeastyZ/ConvSearch-R1 / NestedNamespace

Class NestedNamespace

verl/verl/utils/py_functional.py:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47
48class NestedNamespace(SimpleNamespace):
49
50 def __init__(self, dictionary, **kwargs):
51 super().__init__(**kwargs)
52 for key, value in dictionary.items():
53 if isinstance(value, dict):
54 self.__setattr__(key, NestedNamespace(value))
55 else:
56 self.__setattr__(key, value)

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected