Robin Roth
88cf592c95
Make goto work with await
...
Created together with @langsamer and @davidhalter
2017-10-28 14:10:05 +02:00
Dave Halter
752b7d8d49
One more usages test.
2017-10-15 21:11:49 +02:00
Dave Halter
2b138b3150
Usages fix for more complex situations
2017-10-09 21:09:04 +02:00
Dave Halter
bedff46735
Simplify usages. It should also work way better, now.
2017-10-08 20:13:24 +02:00
Dave Halter
7019ca643e
Remove a possible security issue
...
sys paths are not executed anymore and use static analysis now.
2017-10-05 19:57:50 +02:00
Dave Halter
c7dbf95344
Fix recursion issues.
...
Completely refactored the recursion checker and changed some settings.
Fixes #861 .
2017-09-17 21:54:09 +02:00
Dave Halter
8fcb468539
Jedi was able to go crazy and loop endlessly in certain if/self assignment combinations.
...
Here we limit type inferance per tree scope. I'm still not sure this is the way
to go, but it looks okay for now and we can still go anther way in the future.
Tests are there.
Fixes #929 .
2017-09-17 02:04:42 +02:00
Dave Halter
63edbdcc5b
Better context completions for finally/except/else/elif
...
Fixes #837
2017-09-15 00:48:56 +02:00
Dave Halter
e389c61377
Relative imports with more than one level did not work
...
Fixes #784 .
2017-09-14 22:06:08 +02:00
Dave Halter
4c2d1ea7e7
Understand context managers correctly
...
Fixes #812 .
2017-09-13 11:00:34 +02:00
Dave Halter
c05f1d3ccc
Completion after as in imports should not be possible.
...
Fixes #841 .
2017-09-10 11:27:57 +02:00
Dave Halter
c25a4a00df
readlines should be completable.
...
Fixes #921 .
2017-09-10 01:54:50 +02:00
Dave Halter
c7f225439d
Comprehenions can also define self variables.
...
Also related to #932 .
2017-09-09 20:20:05 +02:00
Dave Halter
40f4f032c6
Fix class/def/class nesting definitions
...
Fixes #932 .
2017-09-09 20:13:03 +02:00
Dave Halter
e85000b798
Replace memoize_default with two nicer functions.
2017-09-05 18:46:16 +02:00
Dave Halter
ef89593896
Disable more tests in Python2.6, because of set literals that don't exist there.
2017-09-03 02:01:43 +02:00
Dave Halter
957f2cedf4
Disable some tests that don't run in 2.6, because its syntax doesn't support it.
2017-09-03 01:23:54 +02:00
Dave Halter
b64690afb8
Param defaults were not correctly followed when goto was used on them.
2017-09-03 00:22:59 +02:00
Dave Halter
9cac7462d6
Return statements should be handled correctly if the return_stmt is only a return without an expression behind it.
2017-09-02 14:03:54 +02:00
Dave Halter
c47f5ca68c
Fix issues with yield.
2017-09-01 18:38:19 +02:00
Dave Halter
e2d53f51b0
test for yields in expressions.
2017-09-01 18:08:52 +02:00
Dave Halter
2fcd2f8f89
Fix some more stuff because of newer parso changes.
2017-07-14 18:21:52 +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
e660a5a703
Forgot to include the test for #884 .
2017-04-04 20:31:27 +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
d41e036427
Keyword-only arguments were not usable. Fixes #883 and #856 .
2017-04-03 18:18:21 +02:00
micbou
a859add6d7
Only resolve names for actual modules
...
A name can be part of an import statement without being a module.
2017-03-01 21:06:21 +01:00
Dave Halter
8131f19751
Correct an issue in the tests with the last commit.
2017-02-04 18:11:54 +01:00
Dave Halter
b6e61133d8
Move the tests for the last PR #848 .
2017-02-04 18:11:14 +01:00
Dave Halter
e0c8b3dd3b
Fix an context issue in completions.
2017-01-29 19:09:35 +01:00
Dave Halter
1edccbe2c3
Improve literal tests.
2017-01-08 19:52:21 +01:00
Dave Halter
7300f3e7ef
Fix issues with Python 3.6's f strings and underscores in numbers.
2017-01-08 19:39:14 +01:00
Dave Halter
3f09f3a304
Add support for PEP 0526.
...
This makes it possible to assign variables like
asdf: typing.List[int] = []
2017-01-08 03:57:35 +01:00
Dave Halter
aff3950085
Better async testing.
2017-01-07 15:40:55 +01:00
Dave Halter
6a18ddf8cb
Fix await issues. At the moment Jedi is just ignoring await statements.
2017-01-07 15:27:32 +01:00
Dave Halter
ae8e43d3c7
Move get_node() to tree_node and replace all the custom classdefs/funcdefs.
2017-01-05 23:43:12 +01:00
Dave Halter
89ec207f49
Add a failing test for an inheritanc context completion issue.
2017-01-05 21:50:15 +01:00
Dave Halter
cd23499fbe
Fix param issues in goto definition.
2017-01-04 08:58:29 +01:00
Dave Halter
24457bfe2e
Fix some usage cases of comprehensions.
2017-01-03 02:15:04 +01:00
Dave Halter
306fd5b95b
Fix a recursion issue.
2017-01-02 23:57:59 +01:00
Dave Halter
5b9e5f96aa
Merge with master.
2017-01-02 13:05:45 +01:00
Dave Halter
96bb9e3c1a
LazyContext.infer() should return a set.
2017-01-02 12:15:09 +01:00
Dave Halter
7fdcdbbd5c
Temporarily execute a string, because currently not everything is working properly.
2016-12-18 19:17:25 +01:00
Dave Halter
641ecedcd2
Improve a few anonymous function execution context goto issues.
2016-12-04 22:35:23 +01:00
Dave Halter
f355c04cae
Finally fixed all black box tests in python 2.
2016-12-03 13:37:51 +01:00
Dave Halter
da1a163da7
Fix python 2 string iterators.
2016-12-03 02:08:40 +01:00
Dave Halter
16a48a7a45
Fix a lot of list comprehensions.
2016-12-02 11:17:55 +01:00
Dave Halter
ba52ecd0df
Some isinstance/flow analysis improvements.
2016-11-29 18:19:15 +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
4ad0179b72
Fix named param completion and add a few tests.
2016-11-27 11:27:30 +01:00