mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-12 11:30:13 +08:00
add a Documentation() class to the API, which will be used in the future for all kind of docstrings. Also add a documentation method on BaseDefinition that returns a Documentation object. Deprecate at the same time its doc and raw_doc functions
This commit is contained in:
1 parent
fa664534e4
commit
3f3788e800
3 files changed
+44
-16
No files matched your search
@@ -193,7 +193,7 @@ def test_signature_is_definition():
|
||||
|
||||
# Now compare all the attributes that a CallSignature must also have.
|
||||
for attr_name in dir(definition):
|
||||
dont_scan = ['defined_names', 'line_nr', 'start_pos']
|
||||
dont_scan = ['defined_names', 'line_nr', 'start_pos', 'documentation', 'doc']
|
||||
if attr_name.startswith('_') or attr_name in dont_scan:
|
||||
continue
|
||||
attribute = getattr(definition, attr_name)
|
||||
|
||||
Reference in new issue
Block a user