mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-15 18:17:07 +08:00
get rid of the whole is_callable stuff, because now we can just check for hasattr(obj, 'py__call__')
This commit is contained in:
@@ -139,13 +139,6 @@ class Base(object):
|
||||
scope = scope.parent
|
||||
return scope
|
||||
|
||||
def is_callable(self):
|
||||
"""
|
||||
By default parser objects are not callable, we make them callable by
|
||||
the ``evaluate.representation`` objects.
|
||||
"""
|
||||
return False
|
||||
|
||||
def space(self, from_pos, to_pos):
|
||||
"""Return the space between two tokens"""
|
||||
linecount = to_pos[0] - from_pos[0]
|
||||
|
||||
Reference in New Issue
Block a user