Commit Graph

60 Commits

Author SHA1 Message Date
Dave Halter
fb1dba269a re-enable the interpretation of the None keyword 2014-08-12 14:38:56 +02:00
Dave Halter
7b4a188948 fix a few small issues that remained in the tests 2014-07-31 17:34:35 +02:00
Dave Halter
81f3b940e8 dicts should not be used to check against in get_defined_names, because they cannot contain a defined name (lists and tuples can) so just ignore them., fixes #417 2014-07-18 15:37:10 +02:00
Dave Halter
4626a8b6df test for #417 2014-07-18 15:23:47 +02:00
Fredrik Bergroth
d3ac1e902e Always cast pr to er in _follow_statements_imports 2014-06-11 23:49:36 +02:00
Dave Halter
b5b79fc818 partial support for *args/**kwargs in CallSignature.index, fixes #395 2014-05-05 00:12:43 +02:00
Dave Halter
f2af053a4a fix the CallSignature.index attribute 2014-05-04 23:36:24 +02:00
Dave Halter
16fd7f5424 create a more specific test for #396, which is again a fast parser issue 2014-05-04 15:53:53 +02:00
Dave Halter
672594514e call_signature/completion interference issues 2014-05-04 13:12:49 +02:00
Dave Halter
065e9a001d call signature test change to avoid version changes of python 3.2.5 (int docstrings have changed, travis has updated since) 2014-05-03 20:12:39 +02:00
Dave Halter
2205117f92 test for #397, something raises ModuleNotFound if we use Definition.type 2014-04-30 16:58:27 +02:00
Dave Halter
81cc50e8b5 well yeah give NamePart a get_code method after all, makes sense, because all the other parser representation objects have it. 2014-04-20 14:32:48 +02:00
Dave Halter
bb6874bc7c fix for problems with incomplete one liner string literals, after a start of an incomplete string literal the whole line should be seen as an error token 2014-04-19 13:56:29 +02:00
Dave Halter
33fa2b0cb4 call_signatures should work on more nested edge cases 2014-04-18 17:17:10 +02:00
Dave Halter
99b1ad18b4 test for davidhalter/jedi-vim#268, Definition objects should be unique per position. This was fixed a few commits ago by the whole usage fixes. 2014-04-18 15:10:57 +02:00
Dave Halter
0582979db5 documentation to docstring, #395 2014-04-17 14:13:47 +02:00
Dave Halter
ddc1cb0e6a same problem with KeywordStatement 2014-04-16 10:28:12 +02:00
Dave Halter
15fdecdb61 for flows triggered an exception if goto_assignments was used on the keyword. found with the help of sith.py 2014-04-16 09:57:01 +02:00
Dave Halter
17345b6e78 reduce/remove getitem side effects, tests for #297 2014-04-07 16:06:07 +02:00
Dave Halter
ea62ad6a50 backwards tokenizer can now handle 10e-5 and so on literals 2014-04-07 15:51:24 +02:00
Dave Halter
1704185ed1 fix Completion.parent() issues with builtins 2014-04-07 15:21:17 +02:00
Dave Halter
0d9f9f0e4a parent on completions tests 2014-04-07 14:54:56 +02:00
Dave Halter
120099ac5e removed the complex number tests somewhere along the line -> reintroduced. 2014-04-07 14:46:26 +02:00
Dave Halter
484ace2cfd fix last problems with #327 2014-04-07 14:43:46 +02:00
Dave Halter
b48d0bf622 passing hex/oct/bin tests for #327 2014-04-07 14:12:12 +02:00
Dave Halter
d15203162a more tests for #327, for complex numbersand the power notation. 2014-04-07 13:50:07 +02:00
Dave Halter
99beac1c2b fix completion on int literals, fixes #327 2014-04-07 13:04:45 +02:00
Dave Halter
79e2ec85cc implement slicing for __getitem__ with interpreter 2014-04-04 15:09:25 +02:00
Dave Halter
a6fbcde184 more detailed tests and implementation of array indexing in the interpreter 2014-04-04 13:22:12 +02:00
Dave Halter
b8987fe451 CompiledObject.get_index_types implementation example 2014-04-03 19:05:29 +02:00
Dave Halter
9959929220 test lists in Interpreter, #297 2014-04-03 11:42:22 +02:00
Dave Halter
69364c598f fix abroken test 2014-04-02 16:01:39 +02:00
Dave Halter
a66f8e5a0b more Definition.parent tests. 2014-04-02 15:44:55 +02:00
Dave Halter
d8c433cb20 Definition.parent is working. fixes #325 2014-04-02 15:37:41 +02:00
Dave Halter
99f292fbb5 tests for Definition.parent(), #325 2014-04-02 15:25:57 +02:00
Dave Halter
b823a196d6 tests for support for symbol browsing with imports and 'defined_names', see #344 2014-04-02 13:17:55 +02:00
Dave Halter
d6ffc80f0e cast pr.Function to er.Function even in the api. 2014-04-02 11:40:50 +02:00
Dave Halter
283a5086f9 use memoize_default instead of strange underscore_decorators in api classes 2014-04-02 10:34:43 +02:00
Dave Halter
305b593f3b create an is_callable method for all representation objects, to determine if something is callable or not 2014-04-02 09:42:15 +02:00
Dave Halter
d1a6dd1098 tests for call signatures that are not actually callable. 2014-04-01 15:22:43 +02:00
Dave Halter
ee18e19711 moved params to BaseDefinition. This enables completions and gotos to check for call signatures as well, fixes #238 2014-04-01 14:34:10 +02:00
Dave Halter
4a9b9388df missing docstrings for imports in completions should be there now, fixes #340 2014-03-25 11:57:34 +01:00
Dave Halter
33d59d8055 tests for documentation Completion.documentation - check if Jedi is following imports correctly 2014-03-25 11:20:48 +01:00
Dave Halter
3f3788e800 add a Documentation() class to the API, which will be used in the future for all kind of docstrings. Also add a documentation method on BaseDefinition that returns a Documentation object. Deprecate at the same time its doc and raw_doc functions 2014-03-25 02:14:34 +01:00
Dave Halter
1c1b51f116 more type tests 2014-03-24 01:31:14 +01:00
Dave Halter
45fecabbf1 definition type shouldn't return import, we'd rather want the implementation name -> #340 2014-03-23 13:30:10 +01:00
Dave Halter
5aa6c770b3 refactor follow_definition tests 2014-03-23 12:40:33 +01:00
Dave Halter
67202db305 change a test (other library) so that python 3.4 also works 2014-03-21 15:36:13 +01:00
Dave Halter
266330c815 removed some deprecated calls 2014-03-15 14:21:23 +01:00
Dave Halter
c7fc13743f add proper deprecation warnings and warnings become error messages in Jedi; also deprecate CallSignature.call_name 2014-03-14 14:49:13 +01:00