Dave Halter
27655db8a9
With the changes in parso, f-strings are now completable
2018-03-31 17:07:47 +02:00
Dave Halter
538996d8d3
Fix lambda dynamic param searches, fixes #1070
2018-03-25 23:54:43 +02:00
Dave Halter
5c06d9871a
Somehow forgot about subscriptlist. Just ignore those for now.
...
Fixes #1010 .
2018-03-18 17:24:45 +01:00
Dave Halter
6042706922
Fix the first issue in #1010
...
Somehow it was still possible with lists to recurse.
2018-03-18 17:09:44 +01:00
Dave Halter
e6469f46c7
Cleanup some instance stuff
2018-03-14 21:04:55 +01:00
Dave Halter
f5cf4c1954
Fix an error in param comments
2018-03-14 09:53:25 +01:00
Dave Halter
13ba74515d
Catch parser errors instead of error recovery when splitting param comments
2018-03-14 09:49:59 +01:00
Lee Danilek
b9903ede1b
Support mypy annotations using comment syntax
...
This allows us to use mypy annotations for completion in Python 2.
Closes #946
2018-03-13 17:55:28 +00:00
Dave Halter
51e0d5d12f
Fix issues with default parameters in functions and classes
...
Default parameters were resolved at the wrong starting position. Fixes #1044
2018-03-08 09:59:09 +01:00
Dave Halter
c9a64bd1d3
Globals should be looked up with the same priority as other defined nodes.
2018-03-04 18:29:00 +01:00
Dave Halter
3820111d1e
Fix some more await things
2018-02-28 23:30:20 +01:00
Dave Halter
dfa383c744
Fix a yield from test
2018-02-28 23:01:07 +01:00
Dave Halter
0d0213ee4c
Support generator returns when used with yield from.
2018-02-28 22:35:58 +01:00
Dave Halter
80ee3b8fcf
Show in a test that something doesn't work properly around async analysis
2018-02-27 18:19:46 +01:00
Dave Halter
4d980d8bd0
Reorder tests to make the async stuff pass on all python versions
2018-02-21 01:28:37 +01:00
Dave Halter
c1d06f4638
Getting more edget cases work in 3.6 for async
2018-02-21 01:11:59 +01:00
Dave Halter
bc0210af70
Use the await method properly and just use it instead of some crazy things
2018-02-21 00:27:15 +01:00
Dave Halter
bf01b9d47c
Refactor the way builtins can be overwritten by jedi's own contexts
2018-02-21 00:09:41 +01:00
Dave Halter
8f4b68ae39
Merge the async branch
2018-02-18 13:45:08 +01:00
Dave Halter
039e7ba07b
Some more sys path corrections.
...
The sys path should be defined more or less in the beginning and not be different for all modules
2018-02-16 14:39:01 +01:00
Dave Halter
76df356628
Relative imports should be working again even when used in more special occasions. Fixes #973
...
There are more fixes needed. Some things are just very unclean and might lead to further bugs.
2018-02-15 14:10:01 +01:00
Dave Halter
514eaf89c3
Prepare a test to eventually solve a relative import problem
2018-02-12 20:33:48 +01:00
Dave Halter
fe0e41e9d6
Fix some more dict.get/dict.values stuff
2018-02-02 18:24:18 +01:00
Dave Halter
8028138e8c
Implememnt dict.values for FakeDict to avoid a recursion error. Fixes #1014 .
2018-02-02 09:34:40 +01:00
Dave Halter
ebe8123b4c
Finding the autocompletion stack is a bit more complicated than I initially thought
...
Fixes #968 .
2018-01-31 08:45:01 +01:00
Dave Halter
522e7123ed
Move the ahead of time tests to the pep0526 file
2018-01-31 00:18:17 +01:00
Dave Halter
2b9429be38
Update the ahead of time tests
2018-01-30 23:09:42 +01:00
Dave Halter
6b535c0503
Fix the last remaining issues with ahead of time annotations, see #982
2018-01-30 01:19:55 +01:00
Dave Halter
d2c0de3eb0
Merge branch 'master' of https://github.com/johannesmik/jedi
2018-01-30 01:02:07 +01:00
Dave Halter
82dc83e150
Merge remote-tracking branch 'origin/master' into virtualenv
2018-01-29 00:56:55 +01:00
Dave Halter
febe65f737
Disable predefined name analysis (if stmts) for all non-analysis tasks
...
It's really buggy and caused quite a few issues
2018-01-29 00:56:29 +01:00
Daniel Hahler
6bab112bb7
test/completion/imports.py: fix typo in comment
2018-01-25 07:57:43 +01:00
micbou
3a0ac37ee8
Fix error when using generators with variable-length arguments
2018-01-13 18:56:34 +01:00
Hugo
7e449af4bd
Revert changes to test/completion and test/static_analysis except for 2.6 comment removal
2018-01-07 10:40:36 +02:00
Hugo
f56035182c
Remove trailing semicolons
2018-01-07 10:40:06 +02:00
Hugo
cc623218e5
Replace function call with set literal
2018-01-07 10:40:06 +02:00
Hugo
8cf708d0d4
Remove redundant parentheses
2018-01-07 10:40:06 +02:00
Hugo
7c31ea9042
Drop support for EOL Python 2.6
2018-01-07 10:40:05 +02:00
Robin Roth
dc43eba07b
Support async/await syntax
2017-11-01 13:44:38 +01:00
Johannes Mikulasch
d9dc4ac840
Merge branch 'master' of https://github.com/johannesmik/jedi
2017-10-31 14:02:35 +01:00
Johannes Mikulasch
a1b60a978d
add testcases for pep0484 ahead of time annotations
2017-10-31 13:57:10 +01:00
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