Simon Ruggier
338ea42ed9
docstrings: fix "Sphinx param with type" pattern ( #807 )
...
* docstrings: fix "Sphinx param with type" pattern
Previously, the pattern only matched if the parameter description
followed on the same line, like so:
:param type foo: A param named foo.
However, it's also valid for the parameter description to be wrapped
onto the next line, like so:
:param type foo:
A param named foo.
This change updates the pattern to match the second example as well, and
adds a test to verify this behaviour.
Fixes #806 .
* Add Simon Ruggier to the AUTHORS file
2017-04-27 20:05:48 +02:00
Dave Halter
819e9f607e
Move get_following_comment_same_line out of the parser tree.
2017-04-27 08:56:11 +02:00
Dave Halter
cc4681ec54
Merge branch 'dev' of github.com:davidhalter/jedi into dev
2017-04-26 18:45:33 +02:00
Dave Halter
e8b32e358b
Remove 'move' from the parser tree.
2017-04-26 18:45:18 +02:00
Dave Halter
c124fc91ca
Remove further clean_scope_docstring usages.
2017-04-26 09:52:18 +02:00
Dave Halter
bea28fd33f
Give ExecutionParams a better way of knowing what called them.
2017-04-26 09:32:47 +02:00
Matthias Bussonnier
b0f10081d4
Fix : Jedi do not complete numpy arrays in dictionary
...
Fix ipython/ipython#10468
2017-04-21 13:14:07 +02:00
Dave Halter
f136745a8a
follow_param -> infer_param.
2017-04-20 18:09:00 +02:00
Dave Halter
ea1905f121
Refactor the docstring input.
2017-04-20 18:06:40 +02:00
Dave Halter
fbde21166b
find_return_types -> infer_return_types.
2017-04-20 09:56:16 +02:00
Dave Halter
ac8ed62a77
Remove FakeName since it's not actually used anymore.
2017-04-20 09:52:31 +02:00
Dave Halter
7ca62578e1
Add py__doc__ as a better approach to docstrings.
2017-04-20 09:45:15 +02:00
Dave Halter
b4631d6dd4
Progress in removing the docstring/call signature logic from the parser.
2017-04-18 18:48:05 +02:00
Dave Halter
1cfe5c2945
Python3Method is not needed anymore in the parser.
2017-04-15 01:53:58 +02:00
Dave Halter
d6d25db9a2
Remove __str__ from name.
2017-04-12 23:06:11 +02:00
Dave Halter
a0b65b52c6
used_names -> get_used_names().
2017-04-12 08:56:11 +02:00
Dave Halter
c056105502
get_except_clauses -> get_except_clause_tests
2017-04-12 08:40:27 +02:00
Dave Halter
7e560bffe8
Move in_which_test_node -> get_corresponding_test_node.
2017-04-12 08:35:48 +02:00
Dave Halter
6190a65f23
The Lambda type should be lambdef, not lambda. Use the grammar types.
2017-04-11 18:28:25 +02:00
Dave Halter
685e630c03
Simple refactoring.
2017-04-11 18:20:44 +02:00
Dave Halter
afa6427861
Fix the remaining lambda issue.
2017-04-11 18:18:31 +02:00
Dave Halter
5cd26615e8
Removed the name attribute from lambda. It doesn't exist so don't fake it.
2017-04-11 18:10:35 +02:00
Dave Halter
e675715357
Rename a few IfStmt methods.
2017-04-10 22:46:06 +02:00
Dave Halter
797953df39
More Flow cleanups.
2017-04-10 10:05:21 +02:00
Dave Halter
218e715553
Make the some names more concise in the parser tree.
2017-04-10 09:44:08 +02:00
Dave Halter
769cc80d6b
Cleanup with_stmt.
2017-04-09 21:20:33 +02:00
Dave Halter
f855c2bb70
More parser tree simplifications.
2017-04-09 13:24:17 +02:00
Dave Halter
ff82763e6b
get_annotation -> annotation (property).
2017-04-08 15:29:29 +02:00
Dave Halter
545cb26f78
stars -> star_count.
2017-04-08 15:26:57 +02:00
Dave Halter
1625834f81
Move get_comp_fors out of the parser.
2017-04-08 14:16:00 +02:00
Dave Halter
65a6c61dc6
Remove nodes_to_execute in favor of a function in parser_utils.
2017-04-08 12:59:49 +02:00
Dave Halter
eb37f82411
Add memoization where it needs to be. Fixes #894 .
2017-04-05 01:06:48 +02:00
Dave Halter
4b841370e4
Test full name for os.path imports. Fixes #873 .
2017-04-05 01:00:20 +02:00
Dave Halter
fe5eaaf56c
Add a better debugging message for import fails.
2017-04-04 23:27:45 +02:00
Dave Halter
947d91f792
Refactor the ClassName to allow inheritance in different modules. Fixes #884 .
2017-04-04 20:11:07 +02:00
Dave Halter
47c1b8fa07
Fix bug #844 .
2017-04-02 22:21:57 +02:00
Dave Halter
3a6d815e9e
Another conversion.
2017-04-01 18:12:53 +02:00
Dave Halter
ed8370fa68
isinstance to type conversions.
2017-04-01 18:08:59 +02:00
Dave Halter
4cc467123c
Use PythonNode and not Node in the evaluator.
2017-04-01 17:39:52 +02:00
Dave Halter
281d6a87a0
Remove a few print statements.
2017-04-01 12:43:57 +02:00
Dave Halter
1fd10d978d
Replace a few isinstance calls with the type.
2017-04-01 00:26:22 +02:00
Dave Halter
35fd1c70bd
Rename parser.utils to parser.cache.
2017-03-30 01:57:48 +02:00
Dave Halter
8059c3c2c8
Save a module instead of a parser when pickling.
2017-03-30 00:55:04 +02:00
Dave Halter
6a9c2f8795
Start using ContextualizedNode for py__iter__.
2017-03-28 01:34:07 +02:00
Dave Halter
bb9ea54402
Remove ImplicitTuple.
2017-03-27 23:18:06 +02:00
Dave Halter
8a35a04439
Remove the module path from the parser tree.
...
Some static analysis tests are still failing.
2017-03-27 18:13:32 +02:00
Dave Halter
63cafeaa87
Remove all usages of start_parsing=True in the fast parser.
2017-03-26 12:49:40 +02:00
Dave Halter
5c54650216
Code to source.
2017-03-26 01:50:19 +01:00
Dave Halter
aff0cbd68c
Remove the last usage of save/load_parser in jedi.
2017-03-26 01:48:45 +01:00
Dave Halter
ac0d0869c9
Start using the parse function for caching as well.
2017-03-24 01:52:55 +01:00