mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-23 11:32:25 +08:00
A small docstring.
This commit is contained in:
@@ -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