ruff detects that `@lru_cache` used on `GenericTranslator.css_to_xpath()` and `HTMLTranslator.css_to_xpath()` (added in #109) is not a good idea: ["the global cache will retain a reference to the instance, preventing it from being garbage collected"](https://docs.astral.sh/ruff/rules/cached-instance-method/), we need to fix or ignore this. I think there are some singletons of these types and maybe we don't use other instances of them but this needs investigating.