MCPcopy Create free account
hub / github.com/google-research/language / SimpleConfigObject

Class SimpleConfigObject

language/canine/config_utils_test.py:28–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28class SimpleConfigObject(config_utils.Config):
29
30 def __init__(
31 self,
32 hello="world",
33 one=1,
34 truthy=False,
35 nested_thing="not_actually_nested",
36 nested=SimpleInnerConfigObject(),
37 deprecated_feature="",
38 ):
39 self.hello = hello
40 self.one = one
41 self.truthy = truthy
42 self.nested_thing = nested_thing
43 self.nested = nested
44 self._private = object() # Unserializable by JSON.
45 self.deprecated_feature = "x" # Deserializable from 'feature'.
46
47
48class UsesProperties(config_utils.Config):

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…