ruff reports issues in tinydb/ (run `ruff check tinydb`). Fix them all without changing behaviour.
