MCPcopy Create free account
hub / github.com/data-apis/python-record-api / getmodulename

Function getmodulename

record_api/core.py:42–47  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

40
41
42def getmodulename(v):
43 if isinstance(v, types.ModuleType):
44 return v.__name__
45 if isinstance(v, types.MethodDescriptorType):
46 return getmodulename(v.__objclass__)
47 return getattr(v, "__module__", None)
48
49
50@functools.singledispatch

Callers 1

should_traceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected