Beispiel #1
0
 def add_yaml_merge(self, value):
     # type: (Any) -> None
     for v in value:
         v[1].add_referent(self)
         for k, v in v[1].items():
             if ordereddict.__contains__(self, k):
                 continue
             ordereddict.__setitem__(self, k, v)
     self.merge.extend(value)
Beispiel #2
0
 def __contains__(self, key):
     # type: (Any) -> bool
     return bool(ordereddict.__contains__(self, key))