You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
432 B
Python
15 lines
432 B
Python
try:
|
|
from astroid import nodes as astroid_node_classes
|
|
|
|
# astroid_node_classes should be whichever module has the NodeNG class
|
|
from astroid.nodes import NodeNG
|
|
except Exception:
|
|
try:
|
|
from astroid import node_classes as astroid_node_classes
|
|
from astroid.node_classes import NodeNG
|
|
except Exception: # pragma: no cover
|
|
astroid_node_classes = None
|
|
NodeNG = None
|
|
|
|
__all__ = ["astroid_node_classes", "NodeNG"]
|