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

Function _event

tests/test_app.py:950–959  ·  view source on GitHub ↗
(name, val, **kwargs)

Source from the content-addressed store, hash-verified

948 exp_vals = ["foo", "foobar", "baz"]
949
950 def _event(name, val, **kwargs):
951 return Event(
952 token=kwargs.pop("token", token),
953 name=name,
954 router_data=kwargs.pop(
955 "router_data", {"pathname": route, "query": {arg_name: val}}
956 ),
957 payload=kwargs.pop("payload", {}),
958 **kwargs,
959 )
960
961 def _dynamic_state_event(name, val, **kwargs):
962 return _event(

Calls 2

EventClass · 0.90
popMethod · 0.45

Tested by

no test coverage detected