mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-28 15:13:18 +08:00
A small docstring.
This commit is contained in:
1 parent
a4d28d2eda
commit
1bf9ca94bb
1 file changed
+3
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user