I tested using ansible-lint versions 24.9.0 and 24.9.2.
The version of requirements.yml producing this error contains:
- name: community.general
version: latest
type: galaxy
The error message when running ansible-lint on the collection is:
ERROR! Unexpected Exception, this is probably a bug: Non integer values in LooseVersion ('latest')
The version of requirements.yml not producing this error contains:
- name: community.general
version: '>=9.5.0'
type: galaxy
Note: The collection community.general version 9.5.0 is currently the latest one and has been published on Ansible Galaxy 23 days ago, see https://galaxy.ansible.com/ui/repo/published/community/general/.