Dave Halter
adff6d34a4
goto_assignment -> goto everywhere where it was left
2019-12-20 19:15:41 +01:00
Dave Halter
2cc898ba35
Get rid of completions in tests
2019-12-20 16:54:51 +01:00
Dave Halter
540a57766d
Make sure that sequence literals have the right generic classes, fixes #1416
2019-12-20 01:33:41 +01:00
Dave Halter
e56d4fde98
Improved Generic subclass matching
2019-12-20 01:33:41 +01:00
Dave Halter
51e2e90dce
Make sure overload checks work for TypeAlias, see #1416
2019-12-20 01:33:41 +01:00
Dave Halter
38eb2c9ba3
Make sure that the definition order in stubs are ignored
2019-12-15 18:41:41 +01:00
Dave Halter
7639bc2da9
Upgrade typeshed, fixes #1084
2019-12-14 11:38:37 +01:00
Dave Halter
92c59180fd
Make sure goto definitions works on with, fixes #1280
2019-12-13 16:57:18 +01:00
Dave Halter
5e3e268cc6
Fix RecursionError: global statements in modules should just be ignored, fixes #1457
2019-12-13 00:21:36 +01:00
Dave Halter
e656a5f18f
Make it possible to infer Callable TypeVars, fixes #1449
2019-12-12 23:46:55 +01:00
Dave Halter
46982ce42b
Add a test to show that type var inference also works for tuples
2019-12-09 00:26:18 +01:00
Dave Halter
ab8f0ba834
Make sure Callable TypeVars are better identified, solves a part of #1413
2019-12-07 15:02:41 +01:00
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