MCPcopy Index your code
hub / github.com/reactive-python/reactpy / f_module_name

Function f_module_name

src/py/reactpy/reactpy/core/_f_back.py:7–14  ·  view source on GitHub ↗
(index: int = 0)

Source from the content-addressed store, hash-verified

5
6
7def f_module_name(index: int = 0) -> str:
8 frame = f_back(index + 1)
9 if frame is None:
10 return "" # nocov
11 name = frame.f_globals.get("__name__", "")
12 if not isinstance(name, str):
13 raise TypeError("Expected module name to be a string") # nocov
14 return name
15
16
17def f_back(index: int = 0) -> FrameType | None:

Callers 1

make_vdom_constructorFunction · 0.90

Calls 2

f_backFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected