1
0
forked from VimPlug/jedi
Commit Graph

1452 Commits

Author SHA1 Message Date
É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 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
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