1
0
forked from VimPlug/jedi
Commit Graph

84 Commits

Author SHA1 Message Date
Dave Halter
a8a15114ac Fix namedtuple support
There were a couple issues:
 - namedtuple with one member didn't work
 - namedtuple content access was never possible
 - operator.itemgetter didn't work properly. Corrected py__bool__ for FakeSequence

Fixes #730.
2017-09-12 11:06:39 +02:00
Dave Halter
04c4313dc7 Start refactoring arguments. 2017-09-09 17:58:06 +02:00
Dave Halter
b90589b62e Some changes because parso has changed. 2017-05-22 15:42:42 -04:00
Dave Halter
9bca3d39f5 Actually use parso now instead of Jedi. 2017-05-19 14:20:14 -04:00
Dave Halter
b4039872bd Replace Scope.subscopes with iter_funcdefs and iter_classdefs. 2017-04-30 01:36:17 +02:00
Dave Halter
6a9c2f8795 Start using ContextualizedNode for py__iter__. 2017-03-28 01:34:07 +02:00
Dave Halter
0f66a3c7a8 Remove the module attribute from the parser. 2017-03-18 03:53:34 +01:00
Dave Halter
eaf0100446 Some analysis improvements. 2016-12-11 15:03:19 +01:00
Dave Halter
2edbe44d64 Fix some next() stuff. 2016-12-03 03:45:27 +01:00
Dave Halter
7607db801f Rewrite the next function. 2016-12-03 02:54:09 +01:00
Dave Halter
d74e48dae2 Fix context completions and super calls. 2016-11-29 18:38:04 +01:00
Dave Halter
5b81a2375d More tests and better understanding of if/try branches name resolution. 2016-11-29 10:21:50 +01:00
Dave Halter
f6070496ad Fixes to the isinstance tests. 2016-11-28 09:34:59 +01:00
Dave Halter
fe54285311 Only 125 fails left in the integration tests. 2016-11-26 00:25:31 +01:00
Dave Halter
75e412dbc5 Remove the old instance. 2016-11-24 19:59:26 +01:00
Dave Halter
cfc988b786 Fix super calls. 2016-11-10 09:00:24 +01:00
Dave Halter
4a8fd73601 Fixing getattr tests. 2016-11-07 20:15:58 +01:00
Dave Halter
2eb701d2d2 Some class fixes. 2016-11-01 18:28:47 +01:00
Dave Halter
75b67af000 Starting to improve function calls. 2016-10-22 21:02:15 +02:00
Dave Halter
2e6603cc2e A lot of small improvements. 2016-10-22 17:40:42 +02:00
Dave Halter
6a8138d185 Improve the compiled object generation caching, which was very wrong and is ok now, but still needs improvements. 2016-07-03 15:32:08 +02:00
Dave Halter
5791860861 Actual forward reference annotations are working pretty smooth now. 2015-12-20 22:57:41 +01:00
Dave Halter
9e8da17688 Remove py__class__ evaluator param from representation objects. 2015-12-10 16:39:27 +01:00
Dave Halter
506d5a4f31 Remove evaluator param from py__bases__. 2015-12-10 16:16:30 +01:00
Dave Halter
98b1845784 Remove evaluator param from py__mro__. 2015-12-10 16:12:43 +01:00
Dave Halter
b10a048167 Get rid of Array.values() and Array.__iter__(). 2015-12-10 15:56:45 +01:00
Dave Halter
bef5fca516 Refactor compiled.CompiledObject so it always owns an evaluator instance. 2015-12-08 02:19:33 +01:00
Dave Halter
76345c0b58 Final fixes for pure usage of py__iter__. 2015-12-04 00:15:48 +01:00
Dave Halter
21faf2431a Added isinstance type checks in the linter. 2015-12-03 16:14:26 +01:00
Dave Halter
f66b8138b7 Remove ordered_elements_of_iterable and get_iterator_types, because they are not used anymore. 2015-12-03 09:25:11 +01:00
Dave Halter
76bbc91ff9 Remove some stdlib stuff that only complicated things. 2015-12-02 13:46:13 +01:00
Dave Halter
d835ffc5a3 Get rid of ordered_elements_of_iterable and use py__iter__ instead. 2015-12-02 13:39:22 +01:00
Dave Halter
9a2256f557 Fix issues with py__iter__types. 2015-12-02 07:11:36 +01:00
Dave Halter
55615fb3c1 unite returns a set now, this simplifies all the set(unite( calls. 2015-11-28 17:52:39 +01:00
Dave Halter
498e24df94 Fix an issue with combined reversed and yield without for loops. 2015-11-10 09:37:07 +01:00
Dave Halter
84c43bf2dc Correct issues with slices and some more subtle bugs. 2015-11-01 21:30:41 +01:00
Dave Halter
62468fb402 reversed and for loops now produce strings in the correct order. 2015-10-14 16:50:26 +02:00
Dave Halter
844a011193 Replacing the types list with a types set. Some tests are failing, though. 2015-10-13 18:03:36 +02:00
Dave Halter
99e819f91a Fix test failures. 2015-09-22 19:33:12 +02:00
Dave Halter
22da402a7a Replace the get_iterator_types function with a different interface, which enables Jedi to detect invalid for loop inputs that are not iterable. 2015-09-22 19:18:36 +02:00
Dave Halter
786217acad Prepare replacing get_iterator_types. 2015-09-22 17:34:46 +02:00
Dave Halter
88bcb8e476 Rename params -> arguments. 2015-09-22 12:57:04 +02:00
Dave Halter
e222a30227 Implement the type builtin better and with a lot more tests. 2015-07-01 14:27:49 +02:00
Dave Halter
ef4b424cda Replace pr with tree, #566. 2015-04-28 01:34:31 +02:00
Dave Halter
47615ae786 Remove pr.Array.type identifiers. 2014-12-19 01:05:52 +01:00
Dave Halter
4897791901 Remove old precedence stuff. 2014-12-16 18:28:45 +01:00
Dave Halter
bf8645d615 namedtuple fix 2014-12-11 13:08:09 +01:00
Dave Halter
94ea2c1096 Issues with argument clinic parser. 2014-12-08 15:45:40 +01:00
Dave Halter
e51a393e4c Fix reversed. 2014-12-01 12:41:47 +01:00
Dave Halter
9f45f18ad1 Added a grammar param to the parser. 2014-11-24 01:10:39 +01:00