MCPcopy Create free account
hub / github.com/nodejs/node / inspect_format_method

Function inspect_format_method

tools/inspector_protocol/jinja2/sandbox.py:137–144  ·  view source on GitHub ↗
(callable)

Source from the content-addressed store, hash-verified

135
136
137def inspect_format_method(callable):
138 if not isinstance(callable, (types.MethodType,
139 types.BuiltinMethodType)) or \
140 callable.__name__ != 'format':
141 return None
142 obj = callable.__self__
143 if isinstance(obj, string_types):
144 return obj
145
146
147def safe_range(*args):

Callers 1

callMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected