We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ca31f1 commit 0ad4e5bCopy full SHA for 0ad4e5b
barcode/writer.py
@@ -331,6 +331,7 @@ def _init(self, code: list[str]):
331
line = code[0]
332
width, height = self.calculate_size(len(line), 1)
333
self._document = create_svg_object(self.with_doctype)
334
+ assert self._document.documentElement is not None
335
self._root = self._document.documentElement
336
attributes = {
337
"width": SIZE.format(width),
0 commit comments