Skip to content

Fixed call to astroid.util.YES #202

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

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@
* [atodorov](https://github.com/atodorov)
* [bittner](https://github.com/bittner)
* [federicobond](https://github.com/federicobond)
* [clintonb](https://github.com/clintonb)

2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ If it's just done for convenience that's really up to you the developer to fix.
Contributing
------------

Please feel free to add your name to the ``CONTRIBUTORS.rst`` file if you want to
Please feel free to add your name to the ``CONTRIBUTORS.md`` file if you want to
be credited when pull requests get merged. You can also add to the
``CHANGELOG.rst`` file if you wish, although we'll also do that when merging.

Expand Down
4 changes: 2 additions & 2 deletions pylint_django/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Utils."""
import sys

from astroid.util import YES
from astroid.util import Uninferable
from astroid.bases import Instance
from astroid.nodes import ClassDef
from astroid.exceptions import InferenceError
Expand All @@ -15,7 +15,7 @@ def node_is_subclass(cls, *subclass_names):
if not isinstance(cls, (ClassDef, Instance)):
return False

if cls.bases == YES:
if cls.bases == Uninferable:
return False
for base_cls in cls.bases:
try:
Expand Down