tests/resources: Fix mypy 0.800 errors
Fix new errors appeared since mypy 0.800 release in a Python file used by the cypress tests to check code highlighting.