1
0
forked from VimPlug/jedi
Commit Graph

4987 Commits

Author SHA1 Message Date
denfromufa 270f70ea7e more precise SO link 2017-06-25 21:39:11 +02:00
Dave Halter e2f88db3c2 Trying to make coveralls work again. 2017-04-30 14:19:53 +02:00
Dave Halter 0f1570f682 position_nr -> position_index 2017-04-30 14:12:30 +02:00
Dave Halter 2383f5c0a0 docstrings for the parser tree. 2017-04-30 14:06:57 +02:00
Dave Halter a1454e3e69 Fix a docstring test. 2017-04-30 03:11:09 +02:00
Dave Halter 78fd3ad861 is_generator is not needed in lambdas. 2017-04-30 03:07:48 +02:00
Dave Halter 1295d73efd path_for_name -> get_path_for_name 2017-04-30 03:03:58 +02:00
Dave Halter e2d6c39ede Remove yields from lambda. It was previously removed from Function. 2017-04-30 02:59:09 +02:00
Dave Halter 076eea12bd Some minor refactoring of the python tree. 2017-04-30 02:56:44 +02:00
Dave Halter 8165e1a27f Add Module.iter_future_import_names to make checking for future imports easier. 2017-04-30 02:44:02 +02:00
Dave Halter f2a77e58d8 Merge branch 'dev' of github.com:davidhalter/jedi into dev 2017-04-30 02:34:38 +02:00
Dave Halter d8761e6310 Use names instead of the isinstance checks in _search_in_scope 2017-04-30 02:33:51 +02:00
Dave Halter 6e9911daa3 Scope.imports -> iter_imports. 2017-04-30 02:31:30 +02:00
Dave Halter 42fe1aeaa1 Move yields -> iter_yield_exprs. 2017-04-30 02:13:25 +02:00
Dave Halter 606871eb62 returns -> iter_return_stmts 2017-04-30 01:45:59 +02:00
Dave Halter b4039872bd Replace Scope.subscopes with iter_funcdefs and iter_classdefs. 2017-04-30 01:36:17 +02:00
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
Dave Halter 3e05061f3b Remove old unused code. 2017-04-28 18:34:02 +02:00
Dave Halter ad536a837c A small change. 2017-04-28 18:29:35 +02:00
Dave Halter b328e727ea Remove Scope.walk, because it was never used. 2017-04-28 18:20:07 +02:00
Dave Halter eaa5100372 Removed Scope.statements from the parser tree. 2017-04-28 18:18:58 +02:00
Dave Halter 307adc2026 Scope.flows is never used so remove it. 2017-04-28 00:23:47 +02:00
Dave Halter 3cf4c66112 Change some more docstring stuff. 2017-04-28 00:23:28 +02:00
Dave Halter bc4c5fafb7 Start creating documentation for the parser. 2017-04-27 21:50:31 +02:00
Dave Halter 02a8443541 search_ancestor docstring 2017-04-27 21:47:39 +02:00
Dave Halter a846e687c3 Move search_ancestor to jedi.parser.tree. 2017-04-27 21:41:24 +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 800bf4bbe2 _NodeOrLeaf -> NodeOrLeaf. 2017-04-27 19:59:30 +02:00
Dave Halter e8cfb99ada Fix a docs issue. 2017-04-27 19:59:09 +02:00
Dave Halter 8bd41ee887 Better documentation of get_code. 2017-04-27 19:48:00 +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