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
Dave Halter
9a713bc36f
Fix create_context for param default arguments/annotations
2019-05-31 00:21:35 +02:00
Dave Halter
df038d8f05
Modules are obviously not executable, but should not lead to traceback when executed
2019-05-30 00:17:38 +02:00
Dave Halter
0cc7ea9bc9
Fix crazier subscript operations
2019-05-28 10:20:06 +02:00
Dave Halter
5fa8338886
Enable a test that is kind of xfailing
2019-05-28 01:55:22 +02:00
Dave Halter
ec7b6b8d80
Fix stub function inferrals
2019-05-28 01:51:37 +02:00
Dave Halter
5a6d8ba010
Implement typing.cast
2019-05-27 20:59:04 +02:00
Dave Halter
8e27c60120
Fix async function inferring with decorators, fixes #1335
2019-05-27 09:47:05 +02:00
Dave Halter
4176af337f
A few Python 2 fixes
2019-05-18 01:09:09 +02:00
Dave Halter
4b829c358b
Fix an import names completion issue
2019-05-17 23:34:17 +02:00
Dave Halter
02ab71ff26
Tests for stub import completions
2019-05-17 16:53:34 +02:00
Dave Halter
e70c49fea2
Use completions from both stubs and actual modules
2019-05-17 16:04:16 +02:00
Dave Halter
c640aa9213
goto_assignments should work even if something is only defined in a stub
2019-05-17 14:58:55 +02:00
Dave Halter
9d5f57d798
Make sure inferring works even if a stub doesn't have all variables defined
2019-05-17 14:45:22 +02:00