mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
remove CallSignature.module, because that's something for internal use
This commit is contained in:
@@ -136,7 +136,10 @@ class Script(object):
|
|||||||
if not dot:
|
if not dot:
|
||||||
# add named params
|
# add named params
|
||||||
for call_sig in self.call_signatures():
|
for call_sig in self.call_signatures():
|
||||||
if not isinstance(call_sig.module, compiled.CompiledObject):
|
# allow protected access, because it's a public API.
|
||||||
|
module = call_sig._executable.get_parent_until()
|
||||||
|
# Compiled modules typically don't allow keyword arguments.
|
||||||
|
if not isinstance(module, compiled.CompiledObject):
|
||||||
for p in call_sig.params:
|
for p in call_sig.params:
|
||||||
# Allow access on _definition here, because it's a
|
# Allow access on _definition here, because it's a
|
||||||
# public API and we don't want to make the internal
|
# public API and we don't want to make the internal
|
||||||
|
|||||||
@@ -586,10 +586,6 @@ class CallSignature(object):
|
|||||||
""" The name (e.g. 'isinstance') as a string. """
|
""" The name (e.g. 'isinstance') as a string. """
|
||||||
return unicode(self._executable.name)
|
return unicode(self._executable.name)
|
||||||
|
|
||||||
@property
|
|
||||||
def module(self):
|
|
||||||
return self._executable.get_parent_until()
|
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return '<%s: %s index %s>' % (type(self).__name__, self._executable,
|
return '<%s: %s index %s>' % (type(self).__name__, self._executable,
|
||||||
self.index)
|
self.index)
|
||||||
|
|||||||
Reference in New Issue
Block a user