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
Dave Halter
bad1f85f8f
Improvements towards arrays / predefined names logic.
2016-11-25 23:31:45 +01:00
Dave Halter
7ed1c95737
Fix dynamic param tests.
2016-11-24 00:11:26 +01:00
Dave Halter
05581714d9
Fix goto tests.
2016-11-17 23:28:47 +01:00
Dave Halter
d15016c5c1
Fix the whole test suite of descriptors.
2016-11-16 22:57:07 +01:00
Dave Halter
31514dfe76
Fix a lot on PEP 484.
2016-11-14 23:29:09 +01:00
Dave Halter
14a8377817
Fix all class issues.
2016-11-10 23:43:07 +01:00
Daniel Hahler
78573b8fa2
Fix goto_definitions being invoked on a parent class
...
When invoking `goto_definitions` on `RequestFactory` in line 5, it would
jump to `Client` after 27f05de :
```python
class RequestFactory(object):
pass
class Client(RequestFactory):
pass
```
Fixes https://github.com/davidhalter/jedi/issues/761 .
2016-11-04 13:00:23 +01:00
Dave Halter
129c669bc0
Fix private variables in filters.
2016-10-15 19:12:46 +02:00
Dave Halter
9acb5cf1b3
Make it possible to do class context completions even for non functions. Fixes #639 .
2016-08-01 23:13:28 +02:00