MCPcopy Index your code
hub / github.com/python/mypy / gen_func_ns

Function gen_func_ns

mypyc/irbuild/function.py:602–608  ·  view source on GitHub ↗

Generate a namespace for a nested function using its outer function names.

(builder: IRBuilder)

Source from the content-addressed store, hash-verified

600
601
602def gen_func_ns(builder: IRBuilder) -> str:
603 """Generate a namespace for a nested function using its outer function names."""
604 return "_".join(
605 info.name + ("" if not info.class_name else "_" + info.class_name)
606 for info in builder.fn_infos
607 if info.name and info.name != "<module>"
608 )
609
610
611def load_decorated_func(builder: IRBuilder, fdef: FuncDef, orig_func_reg: Value) -> Value:

Callers 1

gen_func_itemFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…