MCPcopy Index your code
hub / github.com/ipython/ipython / __call__

Method __call__

IPython/utils/PyColorize.py:573–582  ·  view source on GitHub ↗

Token handler, with syntax highlighting.

(
        self,
        toktype: int,
        toktext: str,
        start_pos: tuple[int, int],
        end_pos: tuple[int, int],
        line: str,
    )

Source from the content-addressed store, hash-verified

571 return acc
572
573 def __call__(
574 self,
575 toktype: int,
576 toktext: str,
577 start_pos: tuple[int, int],
578 end_pos: tuple[int, int],
579 line: str,
580 ) -> None:
581 """Token handler, with syntax highlighting."""
582 self.out.write(self._inner_call_(toktype, toktext, start_pos))

Callers

nothing calls this directly

Calls 2

_inner_call_Method · 0.95
writeMethod · 0.45

Tested by

no test coverage detected