1
0
forked from VimPlug/jedi
Commit Graph

1476 Commits

Author SHA1 Message Date
Dave Halter fe9be9fe09 source_to_unicode -> python_bytes_to_unicode. 2017-08-15 20:09:48 +02:00
Dave Halter f9e31dc941 Refactor splitlines -> split_lines. 2017-08-15 19:55:50 +02:00
Dave Halter ff001e07a6 In parso params is now get_params(). 2017-08-06 17:35:05 +02:00
Dave Halter 39cbd003c0 A small change in parso changed the normalize API. 2017-08-06 16:43:47 +02:00
Dave Halter 8d6732c28c Remove a print statement. 2017-07-16 22:16:13 +02:00
Dave Halter 7e4504efbd Fix ellipsis issues of python2. 2017-07-16 20:07:49 +02:00
Dave Halter 2fcd2f8f89 Fix some more stuff because of newer parso changes. 2017-07-14 18:21:52 +02:00
Dave Halter 72b4c8bd9f The normalize function is private for now. 2017-07-08 18:56:42 +02:00
Dave Halter e0485b032e Fix some stuff to make parso work again. 2017-06-02 00:00:31 +02:00
Dave Halter 5d657500d1 Use the new normalize function instead of get_code(normalize=True) that was removed in parso. 2017-05-27 13:12:11 -04:00
Dave Halter b9271cf5a5 Use the parser_cache correctly. 2017-05-26 13:43:18 -04:00
Dave Halter 24cd603fcf Some more parso adaptations. 2017-05-26 09:08:34 -04:00
Dave Halter 3f36824a94 Parso changed load_python_grammar to load_grammar. 2017-05-25 12:41:19 -04:00
Dave Halter d0127a7f61 Fix a warning that happened if there was no valid Python function in a place. 2017-05-25 12:26:07 -04:00
Dave Halter cd8932fbfc Add a latest grammar to the evaluator and use it to avoid importing from parso import parse. 2017-05-24 00:37:36 -04:00
Dave Halter b90589b62e Some changes because parso has changed. 2017-05-22 15:42:42 -04:00
Dave Halter f35f1b9676 Add the cache_path parameter to parso calls. 2017-05-20 10:08:48 -04:00
Dave Halter 50c7137437 splitlines and source_to_unicode are utils of parso. 2017-05-20 09:55:16 -04:00
Dave Halter 9bca3d39f5 Actually use parso now instead of Jedi. 2017-05-19 14:20:14 -04:00
Dave Halter 6c95f73d77 Remove a function that was not really needed. 2017-05-07 16:00:08 +02:00
Dave Halter 536e62e67d Move is_scope and get_parent_scope out of the parser. 2017-05-07 14:58:53 +02:00
Dave Halter 30a02587a7 Merge branch 'dev' of github.com:davidhalter/jedi into dev 2017-05-07 14:46:47 +02:00
Élie Gouzien a78769954d Check whether inspect.getfile will raise a TypeError and anticipate it.
Anticipate the raise of TypeError from inspect.getfile to prevent the computation of repr() for the error message wich is not used.
Useful for some big pandas arrays.
Fix tentative of #919.
2017-05-06 19:40:36 +02:00
Dave Halter 14eeb60240 Remove is_scope from CompiledObject. It's not needed according to tests. 2017-05-05 09:23:50 +02:00
Dave Halter 336b8a46d0 search_ancestor now uses *node_types as a parameter instead of a mix of tuple and simple string like isinstance. 2017-05-02 19:19:07 +02:00
Dave Halter 0f1570f682 position_nr -> position_index 2017-04-30 14:12:30 +02:00
Dave Halter 1295d73efd path_for_name -> get_path_for_name 2017-04-30 03:03:58 +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 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
Dave Halter 3e05061f3b Remove old unused code. 2017-04-28 18:34:02 +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 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