def update(self, vals): try: ordereddict.update(self, vals) except TypeError: # probably a dict that is used for x in vals: self[x] = vals[x]
def update(self, *vals, **kwds): try: ordereddict.update(self, *vals, **kwds) except TypeError: # probably a dict that is used for x in vals: self[x] = vals[x]
def update(self, vals): # type: (Any) -> None try: ordereddict.update(self, vals) except TypeError: # probably a dict that is used for x in vals: self[x] = vals[x]
def update(self, vals): # type: ignore # type: (Any) -> None try: ordereddict.update(self, vals) self._ok.update(vals.keys()) # type: ignore except TypeError: # probably a dict that is used for x in vals: self[x] = vals[x]
def update(self, vals): # type: (Any) -> None try: ordereddict.update(self, vals) except TypeError: # probably a dict that is used for x in vals: self[x] = vals[x] try: self._ok.update(vals.keys()) # type: ignore except AttributeError: # assume a list/tuple of two element lists/tuples for x in vals: self._ok.add(x[0])
def update(self, *vals, **kw): # type: (Any, Any) -> None try: ordereddict.update(self, *vals, **kw) except TypeError: # probably a dict that is used for x in vals[0]: self[x] = vals[0][x] try: self._ok.update(vals.keys()) # type: ignore except AttributeError: # assume one argument that is a list/tuple of two element lists/tuples for x in vals[0]: self._ok.add(x[0]) if kw: self._ok.add(*kw.keys())