MCPcopy Create free account
hub / github.com/numpy/numpy / _repr

Method _repr

tools/npy_tempita/__init__.py:492–502  ·  view source on GitHub ↗
(self, value, pos)

Source from the content-addressed store, hash-verified

490 html_quote=html_quote))
491
492 def _repr(self, value, pos):
493 if hasattr(value, '__html__'):
494 value = value.__html__()
495 quote = False
496 else:
497 quote = True
498 plain = Template._repr(self, value, pos)
499 if quote:
500 return html_quote(plain)
501 else:
502 return plain
503
504
505def sub_html(content, **kw):

Callers

nothing calls this directly

Calls 3

html_quoteFunction · 0.85
__html__Method · 0.80
_reprMethod · 0.45

Tested by

no test coverage detected