diff --git a/parso/python/tree.py b/parso/python/tree.py index 1a01110..8d7475c 100644 --- a/parso/python/tree.py +++ b/parso/python/tree.py @@ -184,6 +184,9 @@ class Name(_LeafWithoutNewlines): self.line, self.column) def is_definition(self): + """ + Returns True if the name is being defined. + """ return self._get_definition() is not None def _get_definition(self):