(obj: Any)
return module + "." + obj.__name__
Return the fully-qualified name of a top-level function.
Return the fully-qualified name of a top-level function.
Return the fully - qualified name of a top - level function .
def get_top_level_function_name(obj: Any) -> str:
    """Return the fully-qualified name of a top-level function."""
    assert is_top_level_function(obj)
    module = obj.__module__
    if module == '__main__':
        module = os.path.splitext(os.path.basename(sys.modules[module].__file__))[0]
    return module + "." + obj.__name__
def get_top_level_function_name ( obj : Any ) -> str : assert is_top_level_function ( obj ) module = obj . __module__ if module == '__main__' : module = os . path . splitext ( os . path . basename ( sys . modules [ module ] . __file__ ) ) [ 0 ] return module + "." + obj . __name__