Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > pylint_django
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
augmentations | Directory | - | - | |
checkers | Directory | - | - | |
tests | Directory | - | - | |
transforms | Directory | - | - | |
__init__.py | File | 393 bytes | April 17 2025 13:10:59. | |
__pkginfo__.py | File | 28 bytes | April 17 2025 13:10:59. | |
compat.py | File | 1096 bytes | April 17 2025 13:10:59. | |
plugin.py | File | 1513 bytes | April 17 2025 13:10:59. | |
utils.py | File | 1177 bytes | April 17 2025 13:10:59. |
"""Utils.""" import sys import astroid from astroid.bases import Instance from astroid.exceptions import InferenceError from astroid.nodes import ClassDef from pylint_django.compat import Uninferable PY3 = sys.version_info >= (3, 0) # TODO: pylint_django doesn't support Py2 any more def node_is_subclass(cls, *subclass_names): """Checks if cls node has parent with subclass_name.""" if not isinstance(cls, (ClassDef, Instance)): return False if cls.bases == Uninferable: return False for base_cls in cls.bases: try: for inf in base_cls.inferred(): if inf.qname() in subclass_names: return True if inf != cls and node_is_subclass(inf, *subclass_names): # check up the hierarchy in case we are a subclass of # a subclass of a subclass ... return True except InferenceError: continue return False def is_migrations_module(node): if not isinstance(node, astroid.Module): return False return "migrations" in node.path[0] and not node.path[0].endswith("__init__.py")
SILENT KILLER Tool