MCPcopy Index your code
hub / github.com/WhyNotHugo/python-barcode / __repr__

Method __repr__

barcode/base.py:47–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 return code.replace("1", "X").replace("0", " ")
46
47 def __repr__(self) -> str:
48 return f"<{self.__class__.__name__}({self.get_fullcode()!r})>"
49
50 def build(self) -> list[str]:
51 """Return a single-element list with a string encoding the barcode.

Callers

nothing calls this directly

Calls 1

get_fullcodeMethod · 0.95

Tested by

no test coverage detected