MCPcopy
hub / github.com/reflex-dev/reflex / get_name

Method get_name

reflex/state.py:1065–1072  ·  view source on GitHub ↗

Get the name of the state. Returns: The name of the state.

(cls)

Source from the content-addressed store, hash-verified

1063 @classmethod
1064 @functools.lru_cache
1065 def get_name(cls) -> str:
1066 """Get the name of the state.
1067
1068 Returns:
1069 The name of the state.
1070 """
1071 module = cls.__module__.replace(".", "___")
1072 return format.to_snake_case(f"{module}___{cls.__name__}")
1073
1074 @classmethod
1075 @functools.lru_cache

Callers 15

get_substateMethod · 0.95
_mark_dirtyMethod · 0.95
get_eventFunction · 0.80
_rehydrateMethod · 0.80
_finish_taskMethod · 0.80
indexFunction · 0.80
test_dynamic_var_eventFunction · 0.80
test_process_eventsFunction · 0.80
child_stateFunction · 0.80

Calls 1

replaceMethod · 0.80

Tested by 15

indexFunction · 0.64
test_dynamic_var_eventFunction · 0.64
test_process_eventsFunction · 0.64
child_stateFunction · 0.64
child_state2Function · 0.64
grandchild_stateFunction · 0.64
test_dictFunction · 0.64
test_class_attributesFunction · 0.64