-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined variable '__class__' (undefined-variable) seems back with Python 3.8 #3090
Comments
Thanks, I can reproduce the issue. |
Actually, this does not seem to be Python 3.8 specific. I see the issue on Fedora 31 (run in
Is astroid (2.3.0 vs. 2.2.5 on Fedora 30 where the issue does not manifest itself) the culprit? |
I agree, it's not Python version related issue. I got this one with the new Pylint version and Python 3.5 :
and I think @adelton is right, it is related to astroid version (>= 2.3) |
* Upgrade pylint to 2.4.2 and astroid to 2.3.1 https://pylint.readthedocs.io/en/latest/whatsnew/2.4.html https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-1 https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-2 * unnecessary-comprehension fixes * invalid-name fixes * self-assigning-variable fixes * Re-enable not-an-iterable * used-before-assignment fix * invalid-overridden-method fixes * undefined-variable __class__ workarounds pylint-dev/pylint#3090 * no-member false positive disabling * Remove some no longer needed disables * using-constant-test fix * Disable import-outside-toplevel for now * Disable some apparent no-value-for-parameter false positives * invalid-overridden-method false positive disables pylint-dev/pylint#3150 * Fix unintentional Entity.force_update override in AfterShipSensor
Hi, any plans to fix it? Or are there any problems causing that it cannot be fixed? I'm not happy to use the |
* Upgrade pylint to 2.4.2 and astroid to 2.3.1 https://pylint.readthedocs.io/en/latest/whatsnew/2.4.html https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-1 https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-2 * unnecessary-comprehension fixes * invalid-name fixes * self-assigning-variable fixes * Re-enable not-an-iterable * used-before-assignment fix * invalid-overridden-method fixes * undefined-variable __class__ workarounds pylint-dev/pylint#3090 * no-member false positive disabling * Remove some no longer needed disables * using-constant-test fix * Disable import-outside-toplevel for now * Disable some apparent no-value-for-parameter false positives * invalid-overridden-method false positive disables pylint-dev/pylint#3150 * Fix unintentional Entity.force_update override in AfterShipSensor
Steps to reproduce
test.py
with contentpylint-3 --disable=R --disable=C test.py
Current behavior
Expected behavior
pylint --version output
This is on Fedora rawhide with Python 3.8.
The expected behaviour is from Fedora 30 with Python 3.7:
Similar issue was reported before (and resolved) as #1328.
The text was updated successfully, but these errors were encountered: