mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-18 00:55:25 +08:00
Rename _get_definition to get_definition.
This commit is contained in:
@@ -169,9 +169,9 @@ class Name(_LeafWithoutNewlines):
|
||||
"""
|
||||
Returns True if the name is being defined.
|
||||
"""
|
||||
return self._get_definition() is not None
|
||||
return self.get_definition() is not None
|
||||
|
||||
def _get_definition(self, import_name_always=False):
|
||||
def get_definition(self, import_name_always=False):
|
||||
"""
|
||||
Returns None if there's on definition for a name.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user