not-an-iterable
false positive on ExceptionGroup.exceptions
#8985
Labels
Astroid
Related to astroid
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
python 3.11
Bug description
hello.py
Configuration
No response
Command used
Pylint output
Expected behavior
I would expect pylint to accept this code as correct.
ExceptionGroup.exceptions
is a tuple, which is an iterable type.If I run the code with
python hello.py
, I get no errors and the messages of the two exception instances:Pylint version
OS / Environment
Ubuntu 22.04
Additional dependencies
The text was updated successfully, but these errors were encountered: