MCPcopy Create free account
hub / github.com/dot-agent/nextpy / set

Method set

nextpy/base.py:71–82  ·  view source on GitHub ↗

Set multiple fields and return the object. Args: **kwargs: The fields and values to set. Returns: The object with the fields set.

(self, **kwargs)

Source from the content-addressed store, hash-verified

69 return self.__config__.json_dumps(self.dict(), default=serialize)
70
71 def set(self, **kwargs):
72 """Set multiple fields and return the object.
73
74 Args:
75 **kwargs: The fields and values to set.
76
77 Returns:
78 The object with the fields set.
79 """
80 for key, value in kwargs.items():
81 setattr(self, key, value)
82 return self
83
84 @classmethod
85 def get_fields(cls) -> dict[str, Any]:

Callers 15

renderMethod · 0.45
get_componentMethod · 0.45
renderMethod · 0.45
renderMethod · 0.45
applyClientStorageDeltaFunction · 0.45
set_stateMethod · 0.45
_try_get_lockMethod · 0.45
_update_displayMethod · 0.45
executeMethod · 0.45
runMethod · 0.45
__call__Method · 0.45
comm_openedMethod · 0.45

Calls 1

itemsMethod · 0.80

Tested by 2

test_setFunction · 0.36
test_complex_setFunction · 0.36