Commit Graph

80 Commits

Author SHA1 Message Date
Dave Halter
fafd6b2ac6 Keyword completions are no longer possible directly after a number, fixes #1085 2019-06-26 15:04:46 +02:00
Dave Halter
2a9e678877 Merge branch 'master' into typeshed 2019-02-27 13:13:17 +01:00
Dave Halter
5a2e3ee8e3 Filter self names in a more correct way, fixes #1275 2019-02-25 00:26:34 +01:00
Dave Halter
928e80c9e9 Fix search_global for builtins 2018-09-08 16:58:18 +02:00
Dave Halter
7c8051feab Fix default parameters name resolution 2018-08-27 23:10:23 +02:00
Dave Halter
95a1a69771 Fix an issue where __ prefixed variables where not hidden when accessed from a class
Everything worked well when looking at it from an instance perspective.
2018-08-03 11:05:49 +02:00
Dave Halter
764b67d232 Multiple inheritance completion in Python 2 did not work
Fixes #1071.
2018-04-10 08:58:30 +02: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
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
947d91f792 Refactor the ClassName to allow inheritance in different modules. Fixes #884. 2017-04-04 20:11:07 +02:00
Dave Halter
5b9e5f96aa Merge with master. 2017-01-02 13:05:45 +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
01e577be8b Move some recursion issues to the recursion module. 2016-07-27 22:23:30 +02:00
Dave Halter
0a4e858d88 Fix a recursion issue and add a test. 2016-07-27 19:15:03 +02:00
Dave Halter
32346c6da8 A lot of call signature refactorings. Note that this commit is totally broken. 2016-06-17 00:20:13 +02:00
Dave Halter
c82691a12b Make goto_definitions a lot simpler. 2016-06-11 23:13:04 +02:00
Dave Halter
daa68b66ad Fix a few issues caused by the refactoring. 2016-05-29 19:49:35 +02:00
Dave Halter
4f2d4992da Fix an mro resolution issue. 2015-02-23 19:04:35 +01:00
Dave Halter
c451c0b29e Private variable filtering improved. 2015-01-07 14:44:19 +01:00
Dave Halter
3c92d175da using super() in actual executed classes wasn't possible. fixes #421 2014-07-30 11:27:27 +02:00
Danilo Bargen
e8f479172a Implemented dynamic superclasses 2014-07-27 14:11:48 +02:00
Danilo Bargen
2a1c108bbf Fixed whitespace problems in completion tests 2014-07-26 17:39:05 +02:00
Dave Halter
d106b2ce2b __getattr__ arbitrary returns fix 2014-04-27 23:15:32 +02:00
Dave Halter
b6dbbd2c5d tests for compiled super classes - #380 2014-03-11 12:42:40 +01:00
David Halter
5ad12bc8aa fix mro usage and all the type stuff (see also my blog post about why dir is wrong). fixes #314, fixes #86 2013-09-13 22:47:00 +04:30
David Halter
9bbd73bf86 fix problems with set_vars that were no set_vars 2013-09-06 15:24:14 +04:30
David Halter
9c6dae1df8 temporarily disable old tests to refactor set_vars 2013-09-01 23:54:15 +04:30
David Halter
2ee7ee4473 regression test for #205 2013-08-31 19:59:39 +04:30
David Halter
59f0b523bd move descriptors out of classes into their own file 2013-08-09 11:38:30 +04:30
David Halter
d78b72b046 fixed getattr with array call 2013-07-23 14:30:18 +02:00
David Halter
9348feb8bf operations (+, *, etc) shouldn't be InstanceElements, fixes #246 2013-07-18 12:31:48 +02:00
David Halter
fd4eb5f0a6 add test of #183 2013-05-03 15:16:09 +04:30
David Halter
40898450af support for super() 2012-12-24 12:27:43 +01:00
David Halter
936f7f9fd5 private variables are not accessible anymore, but still completeable - fixes and tests for #56 2012-11-22 23:50:26 +01:00
David Halter
7d38fc6513 again method param access 2012-11-22 15:24:38 +01:00
David Halter
816d01b543 finally fixed the most prominent bug, that is being featured on the front page of github-jedi -> class methods shouldn't return their params as a completion 2012-11-22 13:01:00 +01:00
David Halter
ff84e4670b keyword completion shouldn't occur all the times; thanks to Tobias Halter for his brilliant Kantischueler logic. 2012-09-30 16:46:28 +02:00
David Halter
1a4de1bc68 getattr() / __getattribute__ / __getattr__ implementation 2012-09-13 02:09:50 +02:00
David Halter
51ee262706 ducktyping tests 2012-09-04 15:37:37 +02:00
David Halter
37df118519 InstanceElement cleanup, not all tests pass, though 2012-09-04 08:54:13 +02:00
David Halter
9a5537d3c1 descriptor tests for the used methods 2012-08-30 15:25:51 +02:00
David Halter
33e5850105 dynamic arrays in executions and instances should now work fully, some things got simplified, now it works. 2012-08-27 11:36:44 +02:00
David Halter
528b978ca5 property recursion tests 2012-08-21 12:19:18 +02:00
David Halter
c87899d9b0 flows no longer distort results in certain positions 2012-08-03 13:46:07 +02:00
David Halter
4cd1efc5ba descriptors are now also working with classes. this means classmethod/staticmethod are now working 2012-07-19 18:29:04 +02:00
David Halter
6ef99d4338 parent_stmt property never raises an error now, returns None 2012-07-19 17:15:48 +02:00
David Halter
6bea28938f fixed an ordering bug (without test) 2012-07-19 16:58:10 +02:00