Python 3.10 match statement causing false positive unsupported-membership-test #5967
Labels
Astroid
Related to astroid
Control flow
Requires control flow understanding
Duplicate 🐫
Duplicate of an already existing issue
False Positive 🦟
A message is emitted but nothing is wrong with the code
inference
Match case
python 3.10
Bug description
Command used
pylint ~/src/wtf.py
Pylint output
Expected behavior
It should accept that the function will always return a list of strings:
Pylint version
OS / Environment
Python 3.10.3 via pyenv on a Mac.
The text was updated successfully, but these errors were encountered: