mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-24 12:27:05 +08:00
Move the docstring checking code to the names
This commit is contained in:
1 parent
536fd8c7c0
commit
fcede44c2a
9 files changed
+105
-77
No files matched your search
@@ -288,6 +288,10 @@ class CompiledName(AbstractNameDefinition):
|
||||
self.parent_context = parent_context
|
||||
self.string_name = name
|
||||
|
||||
def py__doc__(self, include_signatures=False):
|
||||
value, = self.infer()
|
||||
return value.py__doc__()
|
||||
|
||||
def _get_qualified_names(self):
|
||||
parent_qualified_names = self.parent_context.get_qualified_names()
|
||||
if parent_qualified_names is None:
|
||||
|
||||
Reference in new issue
Block a user