MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / get_class_id

Function get_class_id

src/python/lfs/py_ui.cpp:87–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 namespace {
86
87 std::string get_class_id(nb::object cls) {
88 auto mod = nb::cast<std::string>(cls.attr("__module__"));
89 auto name = nb::cast<std::string>(cls.attr("__qualname__"));
90 return mod + "." + name;
91 }
92
93 constexpr size_t INPUT_TEXT_BUFFER_SIZE = 1024;
94 constexpr float GRID_AUTO_COLUMN_WIDTH = 100.0f;

Callers 2

register_class_apiFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected