diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d69eaa5..5195783 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: "22.1.0" + rev: "22.3.0" hooks: - id: black - repo: https://github.com/PyCQA/flake8 diff --git a/barcode/writer.py b/barcode/writer.py index 4eabc17..042d847 100755 --- a/barcode/writer.py +++ b/barcode/writer.py @@ -283,8 +283,8 @@ def render(self, code): ypos += pt2mm(self.font_size) blocks = self.text - for (text, xpos) in zip(blocks, text["xpos"]): - self.text = text + for (text_, xpos) in zip(blocks, text["xpos"]): + self.text = text_ self._callbacks["paint_text"](xpos, ypos) return self._callbacks["finish"]()