MCPcopy Index your code
hub / github.com/python/cpython / __repr__

Method __repr__

Lib/tokenize.py:48–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46
47class TokenInfo(collections.namedtuple('TokenInfo', 'type string start end line')):
48 def __repr__(self):
49 annotated_type = '%d (%s)' % (self.type, tok_name[self.type])
50 return ('TokenInfo(type=%s, string=%r, start=%r, end=%r, line=%r)' %
51 self._replace(type=annotated_type))
52
53 @property
54 def exact_type(self):

Callers

nothing calls this directly

Calls 1

_replaceMethod · 0.45

Tested by

no test coverage detected