Dave Halter
36b800f8d3
Make sure that Tuple autocompletes properly, fixes #1389
2019-12-05 18:55:33 +01:00
Dave Halter
4ba3dc69b3
Make sure we use the right context in case of goto with decorators, fixes #1427
2019-12-04 00:25:43 +01:00
Dave Halter
8aee1e6213
Make sure that decorator signature completion is working, see #1433
2019-12-03 22:20:38 +01:00
Dave Halter
f46f00bc71
Avoid wrong random call signature completion, fixes #1433
2019-12-03 22:12:33 +01:00
Dave Halter
7254bec92c
Upgrade typeshed to the latest commits
...
Also fixes some small Jedi issues with it (None interpretation in annoations mostly)
2019-12-02 10:14:59 +01:00
Dave Halter
378712dbc1
Fix contextualizing of subscriptlist
2019-12-01 11:07:18 +01:00
Dave Halter
b13c4c446f
Fix a globals context issue, fixes #1435
2019-12-01 01:28:03 +01:00
Dave Halter
b895924311
Merge pull request #1451 from pappasam/FIX_SHOW_SYSTEM_FOLDERS
...
Fix: no longer shows folders recursively to root
2019-12-01 00:12:51 +01:00
Dave Halter
86071dda54
Use a different sys path for import completions and import type inference
...
Fix tests of the #1451 pull request
2019-12-01 00:12:19 +01:00
Dave Halter
8478ad7ffb
Make sure that goto on a subscript colon doesn't crash
2019-11-29 17:10:07 +01:00
Samuel Roeca
761f0828c7
Fix missing inference for typing.Type[typing.TypeVar] ( #1448 )
...
* Add Type[TypeVar] support
* Completion tests for typing.Type[typing.TypeVar]
2019-11-27 22:10:58 +01:00
Jérome Perrin
6d632a01eb
Fix inference from type comment for function parameter with dot
...
fix for https://github.com/davidhalter/jedi/issues/1437
2019-11-08 13:41:17 +01:00
Dave Halter
66022edf14
Skip Python 2 tests for some array issues
2019-09-06 00:04:44 +02:00
Dave Halter
06d2119f51
Make sure a self variable is only defined in a function not outside
2019-09-04 00:53:46 +02:00
Dave Halter
7bdd71f9a7
Add some dynamic inference checks for annotations
2019-09-03 00:56:42 +02:00
Dave Halter
286d2c9b1a
Make the order of overloaded functions correct
2019-08-30 01:11:11 +02:00
Dave Halter
04bc9eb62c
Get py__simple_getitem__ working on dicts that have a dict as a param, see #1385
2019-08-29 09:27:43 +02:00
Dave Halter
4572503c9f
Fix usages in context of the new parso parameter include_setitem=True
2019-08-28 22:56:16 +02:00
Dave Halter
066b189bfa
Fix cases where dicts are passed to dicts and generics were not properly applied
2019-08-27 20:41:46 +02:00
Dave Halter
305bfd3a3c
Change a test so it works with generics
2019-08-26 21:53:41 +02:00
Dave Halter
8311328a8e
Get py__simple_getitem__ modifications working for list/dict instances
2019-08-26 21:48:41 +02:00
Dave Halter
24b392b915
Random objects should not be affected by list/dict modifications
2019-08-26 19:28:30 +02:00
Dave Halter
356c25a399
Add a way how dict setitem can be understood
...
Needs the latest parso commits
2019-08-26 19:27:33 +02:00
Dave Halter
41dc514546
Enable a sys path test that is working now
2019-08-25 13:20:37 +02:00
Dave Halter
e3d2bce7ff
Reenable some tests
2019-08-25 02:37:52 +02:00
Dave Halter
88cf198552
Avoid function executions if they are not necessary
...
This also means that annotations are prefered to docstring types
2019-08-24 12:23:33 +02:00
Dave Halter
4cbe2898c0
Fix usage tests
...
With those tests fixed, everything should pass again
2019-08-21 01:01:09 +02:00
Dave Halter
03920502c4
infer_state -> inference_state
2019-08-16 11:44:30 +02:00
Dave Halter
ad4f546aca
context -> value
2019-08-15 01:23:06 +02:00
Dave Halter
a5dff65142
Evaluator -> InferState
2019-08-15 00:37:51 +02:00
Dave Halter
3b4f292464
Move the evaluate package to inference
2019-08-15 00:14:26 +02:00
Dave Halter
97526aa320
Add tests to show that #516 is not working, yet
2019-08-02 22:31:26 +02:00
Dave Halter
703b747a31
Deal with annotation on *args and **kwargs correctly, fixes #980
2019-07-23 23:56:30 +02:00
Dave Halter
f4fe113c0f
One test about recursion issues only applied to Python 2
2019-07-18 12:00:47 +02:00
Dave Halter
eeea88046e
First step in working with metaclasses in plugins, see #1090 .
2019-07-18 11:20:28 +02:00
Dave Halter
de138e9114
Improve a bit of dataclasses support, so at least the attributes can be seen
...
see #1213
2019-07-03 09:21:57 -07:00
Dave Halter
4c132d94b9
Make sure in tests that pep 0526 variables are also able to be used when using self, see #933
2019-07-01 23:34:28 -07:00
mwchase
925fc89447
Get typing.NewType working ( #1344 )
...
Squashed from the following commits:
* Update pep0484.py
(I don't think I want to know why the cursor jumped to the beginning of the line with every keystroke in GitHub's online editor. Change was entered backwards.)
* Added test for inline use of NewType. Currently assuming that wrapped instances should get the underlying type.
* Altered tests per https://github.com/davidhalter/jedi/issues/1015#issuecomment-356131566
* Add NewTypeFunction to typing evaluation module
* Update AUTHORS.txt
* Add a new test, and a speculative justification
For now, address only the second comment
* Copy code from third comment on the PR
From inspection, I *believe* I understand what this code is doing, and as such, I believe this should cause the new test I added in response to the second comment to fail, because that test is based on faulty assumptions.
* Explicitly discard the key from the tuple
* Update pep0484_typing.py
* Test for the wrapped type, not the wrapper "type"
* Change the return value from calling a NewType
2019-07-01 22:42:59 -07:00
Dave Halter
1e3b6a201d
Fix filters for classes and functions
2019-07-01 22:24:29 -07:00
Dave Halter
a9ff58683e
Fix ClassVar filter for instances
2019-06-26 22:56:30 +02:00
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
265abe1d08
Fix super call goto for multiple inheritance, fixes #1311
2019-06-24 09:53:56 +02:00
Dave Halter
ebdae87821
goto should always goto definitions, fixes #1304
2019-06-24 01:25:26 +02:00
Dave Halter
907fdaa153
Fix some minor errors
2019-06-20 09:53:40 +02:00
Jean Cavallo
a3afdc0ece
Ignore super calls when super class cannot be inferred
2019-06-12 09:51:08 +02:00
Dave Halter
827a79861d
Add tests for positional only params
2019-06-09 22:56:20 +02:00
Dave Halter
c8d658e452
A first very incomplete implementation of named expression support
2019-06-03 00:11:49 +02:00
Dave Halter
d6c89ced99
goto should work on globals
2019-05-31 17:41:34 +02:00
Dave Halter
d9332aec8c
Fix tuple unpacking for special case
2019-05-31 17:07:51 +02:00
Dave Halter
3fb5b4992b
Fix: Function calls with generators should always work, even if syntastically invalid
2019-05-31 13:35:23 +02:00