False positive undefined-variable
when using class reference of sibling class
#5794
Labels
C: undefined-variable
Issues related to 'undefined-variable' check
False Positive 🦟
A message is emitted but nothing is wrong with the code
Bug description
I'm getting false positives when using the following construct, where the name of a sibling class is used in the argument list of defining another sibling class.
The code works perfectly fine, cpython executes it and the result is the expected result. It is just pylint-2.12.2 which is complaining about this:
The full code example can be fond at https://gerrit.osmocom.org/c/pysim/+/27130/6 and can be cloned via
Command used
Pylint output
Expected behavior
pylint should not throw an error for something that parses and executes fine in cpthon.
Pylint version
OS / Environment
Debian GNU/Linux
The text was updated successfully, but these errors were encountered: