Closed alex-harvey-z3q closed 7 months ago
Before this change, the indent filter would raise a confusing error like the following if an unexpected input type was sent e.g. a dict:
unsupported operand type(s) for +=: 'dict' and 'str'"
This updates the code to fail gracefully and adds a new test.
Checklist:
CHANGES.rst
.. versionchanged::
pre-commit
pytest
tox
Before this change, the indent filter would raise a confusing error like the following if an unexpected input type was sent e.g. a dict:
This updates the code to fail gracefully and adds a new test.
Checklist:
CHANGES.rst
summarizing the change and linking to the issue... versionchanged::
entries in any relevant code docs.pre-commit
hooks and fix any issues.pytest
andtox
, no tests failed.