syntax-highlighting
syntax-highlighting copied to clipboard
Update consts.py
check str attribute instead of an anki version
Description
Concisely describe what the pull request is trying to achieve. If pertinent, link to an existing issue report, or briefly explain the problem the PR is meant to solve. Feel free to attach screenshots or other media for UI-related changes.
Checklist:
Please replace the space inside the brackets with an x and fill out the ellipses if the following items apply:
- [x] I've read and understood the contribution guidelines
- [x] I've tested my changes against at least one of the following Anki builds:
- [x] Latest standard Anki 2.1 binary build [required for Anki-compatible 2.1 add-ons]
- [ ] Latest alternative Anki 2.1 binary build
- [ ] Latest Anki 2.0 binary build [required for Anki 2.0-compatible add-ons]
- [ ] I've tested my changes on at least one of the following platforms:
- [ ] Linux, version:
- [ ] Windows, version:
- [x] macOS, version: 14.1
- [ ] My changes potentially affect non-desktop platforms, of which I've tested:
- [ ] AnkiMobile, version:
- [ ] AnkiDroid, version:
- [ ] AnkiWeb