MCPcopy Index your code
hub / github.com/lincolnloop/python-qrcode / __init__

Method __init__

qrcode/image/svg.py:23–27  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

21 default_drawer_class: type[QRModuleDrawer] = svg_drawers.SvgSquareDrawer
22
23 def __init__(self, *args, **kwargs):
24 ET.register_namespace("svg", self._SVG_namespace)
25 super().__init__(*args, **kwargs)
26 # Save the unit size, for example the default box_size of 10 is '1mm'.
27 self.unit_size = self.units(self.box_size)
28
29 @overload
30 def units(self, pixels: Union[int, Decimal], text: Literal[False]) -> Decimal: ...

Callers

nothing calls this directly

Calls 2

unitsMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected