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

Method _str_term_unicode

numpy/polynomial/polynomial.py:1520–1524  ·  view source on GitHub ↗
(cls, i, arg_str)

Source from the content-addressed store, hash-verified

1518
1519 @classmethod
1520 def _str_term_unicode(cls, i, arg_str):
1521 if i == '1':
1522 return f"·{arg_str}"
1523 else:
1524 return f"·{arg_str}{i.translate(cls._superscript_mapping)}"
1525
1526 @staticmethod
1527 def _str_term_ascii(i, arg_str):

Callers

nothing calls this directly

Calls 1

translateMethod · 0.80

Tested by

no test coverage detected