From 1bf9ca94bbed4fce4c75cedf94e6bdba77c30b67 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 2 Sep 2017 22:41:15 +0200 Subject: [PATCH] A small docstring. --- parso/python/tree.py | 3 +++ 1 file changed, 3 insertions(+) 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):