Commit Graph

725 Commits

Author SHA1 Message Date
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
Dave Halter
51802e9784 Fix a test that was actually wrong in Python 2.7 (not working). 2016-08-01 14:57:58 +02:00
Dave Halter
647a4db326 Autocomplete inherited methods when overriding in child class. Fixes #458. 2016-07-31 23:09:50 +02:00
Dave Halter
62e184134b Fix __call__ param completion. Fixes #613. 2016-07-31 21:37:01 +02:00
Dave Halter
524a13ba26 Proof that docstring inference is working even on renamed imports. Fixes #507. 2016-07-31 12:14:44 +02:00
Dave Halter
a4edf5d5d1 Test lambdas better. 2016-07-31 11:41:39 +02:00
Dave Halter
2b4b5f069b Docstring should also be evaluated in class definitions. Fixes #631. 2016-07-30 14:18:20 +02:00
Dave Halter
1fa16337b7 Fix an issue with named args goto. 2016-07-29 00:22:24 +02:00
Dave Halter
77fa2928ee Add some completion tests. 2016-07-28 23:16:37 +02:00
Dave Halter
f605359c16 More comprehension issues. 2016-07-28 18:12:41 +02:00
Dave Halter
092299f537 Fix a recursion issue with nested for loops. 2016-07-27 23:36:44 +02:00
Dave Halter
01e577be8b Move some recursion issues to the recursion module. 2016-07-27 22:23:30 +02:00
Dave Halter
4c6669e081 Fix another issue. 2016-07-27 21:17:12 +02:00
Dave Halter
0a4e858d88 Fix a recursion issue and add a test. 2016-07-27 19:15:03 +02:00