Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add check for using major 3.11 and 3.12 features with lower --py-version #9791

Closed
jacobtylerwalls opened this issue Jul 14, 2024 · 4 comments · Fixed by #9792 or #9940
Closed

Add check for using major 3.11 and 3.12 features with lower --py-version #9791

jacobtylerwalls opened this issue Jul 14, 2024 · 4 comments · Fixed by #9792 or #9940
Assignees
Labels
Enhancement ✨ Improvement to a component py-version
Milestone

Comments

@jacobtylerwalls
Copy link
Member

jacobtylerwalls commented Jul 14, 2024

Current problem

Add using-exception-groups-in-unsupported-version and
using-generic-type-syntax-in-unsupported-version for uses of Python 3.11+ or
3.12+ features on lower supported versions provided with --py-version.

Desired solution

new msgs

Additional context

No response

@jacobtylerwalls jacobtylerwalls added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Jul 14, 2024
@jacobtylerwalls jacobtylerwalls self-assigned this Jul 14, 2024
@jacobtylerwalls jacobtylerwalls added this to the 3.3.0 milestone Jul 14, 2024
@Pierre-Sassoulas Pierre-Sassoulas added Enhancement ✨ Improvement to a component and removed Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling labels Jul 14, 2024
@jolaf
Copy link

jolaf commented Sep 25, 2024

It's not working for me on pylint 3.3.1:

pylintrc:1: [W0012(unknown-option-value), ] Unknown option value for '--enable', expected a valid pylint message and got 'using-exception-group-in-unsupported-version'

@Pierre-Sassoulas
Copy link
Member

What's your output for pylint --version @jolaf ?

@jacobtylerwalls
Copy link
Member Author

Ah, it's groups, not group.

@jacobtylerwalls
Copy link
Member Author

I updated the github release markdown, will PR a release note fix shortly. 👍

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Enhancement ✨ Improvement to a component py-version
Projects
None yet
3 participants