diff --git a/pylint_quotes/checker.py b/pylint_quotes/checker.py index 485cc1c..84a3e4e 100644 --- a/pylint_quotes/checker.py +++ b/pylint_quotes/checker.py @@ -156,7 +156,7 @@ def _process_for_docstring(self, node, node_type): node_type: the type of node being operated on. """ # if there is no docstring, don't need to do anything. - if node.doc is not None: + if node.doc_node is not None: # the module is everything, so to find the docstring, we # iterate line by line from the start until the first element