Skip to content

Commit

Permalink
Fix loading astroid.nodes.node_classes for astroid>3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zercos authored and gwax committed May 10, 2024
1 parent 9598a8a commit e5b1a37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pylint_sqlalchemy/dml_no_argument.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
"""Linter to fix missing `dml` argument for pylint and sqlalchemy."""
import astroid
import astroid.node_classes
try:
import astroid.node_classes
except ModuleNotFoundError:
import astroid.nodes.node_classes


def strip_dml(node):
Expand Down

0 comments on commit e5b1a37

Please sign in to comment.