Matthias Bussonnier
6f1ee0cfa8
Use stacklevel in warnings or filters don't work.
...
In particular with the right stacklevel IPython will display the warning
if code is directly entered by the user. Without this info it does not.
Use the opportunity to add in the warning since when things are
deprecated. This leads to one less lookup of information for the user.
2017-04-29 20:13:19 +02:00
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
e8718c6ce5
Docs for IPython completion which depends now on Jedi.
2017-04-27 19:31:50 +02:00
Dave Halter
0474854037
More docstrings of a few _BaseOrLeaf methods/properties.
2017-04-27 17:39:46 +02:00
Dave Halter
e998a18d8e
More docstrings.
2017-04-27 09:14:23 +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
dea09b096d
Some docstrings for the parser.
2017-04-26 18:16:50 +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
db683acfc1
One more docstring test.
2017-04-20 09:47:30 +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
deb028c3fb
Move get_statement_of_position out of the parser tree.
2017-04-15 02:23:08 +02:00
Dave Halter
1cfe5c2945
Python3Method is not needed anymore in the parser.
2017-04-15 01:53:58 +02:00
Dave Halter
4bd3c91622
Fix Python 2 tests.
2017-04-15 01:49:20 +02:00
Dave Halter
c4e51f9969
Use object for Python 2 classes.
2017-04-15 01:47:48 +02:00
Dave Halter
d6d25db9a2
Remove __str__ from name.
2017-04-12 23:06:11 +02:00
Dave Halter
73a38267cf
Simplify the Operator/Keyword string comparison.
2017-04-12 19:11:14 +02:00
Dave Halter
a0b65b52c6
used_names -> get_used_names().
2017-04-12 08:56:11 +02:00
Dave Halter
b0ac07228b
Restructure/Refactor has_absolute_import a bit.
2017-04-12 08:47:30 +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
4cd7f40e3b
Simplify get_executable_nodes.
2017-04-08 14:05:18 +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
8542047e5c
Adding a tag should be part of the deployment script.
2017-04-06 18:21:20 +02:00
Dave Halter
053020c449
Bump version to 0.10.3.
2017-04-06 18:13:06 +02:00
Dave Halter
8bdf7e32ef
Remove the dist folder before deploying.
2017-04-05 20:54:22 +02:00
Dave Halter
5427b02712
Merge branch 'dev'
v0.10.2
2017-04-05 20:00:16 +02:00
Felipe Lacerda
aa2dfa9446
Fix path for grammar files in MANIFEST
2017-04-05 19:59:00 +02:00
Dave Halter
3cc97f4b73
Changelog for 0.10.2.
2017-04-05 18:04:41 +02:00
Dave Halter
536ad4c5f1
Added the forgotten changelog for 0.10.1.
2017-04-05 18:03:45 +02:00