Dave Halter
5853c67906
Write tests for dict getitem
2019-12-31 18:53:35 +01:00
Dave Halter
83ce8b1162
Make the completions possible for Interpreter objects
2019-12-31 18:34:50 +01:00
Dave Halter
5fc308f1f8
call signature -> signature
2019-12-20 19:41:57 +01:00
Dave Halter
d7d9c9642a
Don't use goto_definitions anymore, use infer
2019-12-20 19:06:24 +01:00
Dave Halter
2cc898ba35
Get rid of completions in tests
2019-12-20 16:54:51 +01:00
Dave Halter
38460ce9d7
Use complete instead of completions in test_api/
2019-12-20 16:16:01 +01:00
Dave Halter
a6bf49783f
Make sure param annotation completions work
2019-12-14 02:55:11 +01:00
Dave Halter
6b9add4264
Python 2 compatibility
2019-12-13 16:58:56 +01:00
Dave Halter
923fcf95d9
Make sure that __getattr__ is always working with Interpreter
...
fixes #1378
2019-12-13 16:07:38 +01:00
Dave Halter
769b3556d2
Make sure warnings are not shown if a property is executed, fixes #1383
2019-12-13 01:48:56 +01:00
Dave Halter
7e64bfa075
Avoid more Python 2
2019-12-05 17:44:47 +01:00
Dave Halter
54f4bd0bad
Fix issues with interpreter completions on unittest.mock.
...
For 3.6+ an error was ignored that lead to crashes. In 3.5 the OOM killer
eventually arrived...
Fixes #1415
2019-12-05 10:09:22 +01:00
Dave Halter
ad4f546aca
context -> value
2019-08-15 01:23:06 +02:00
Dave Halter
3b4f292464
Move the evaluate package to inference
2019-08-15 00:14:26 +02:00
Dave Halter
c3d40949b1
Make it possible to access properties again
...
This time we catch all exceptions and try to avoid issues for the user.
This is only happening when working with an Interpreter. I don't feel this is
necessary otherwise.
See #1299
2019-08-11 16:24:19 +02:00
Dave Halter
ab80646b86
Fix an issue with type vars that might have been a problem for other things as well
2019-08-11 01:28:09 +02:00
Dave Halter
a803d687e2
Skipped Python 2 Interpreter tests the wrong way
2019-07-24 13:44:26 +02:00
Dave Halter
05d9602032
Fix partial signatures for MixedObject
...
Now a MixedObject return the signatures of its CompiledObject all the time, fixes #1371
2019-07-24 12:58:20 +02:00
Dave Halter
3d08eb92d5
Very small refactoring
2019-07-23 13:08:57 +02:00
Johannes-Maria Frank
02d16ac55c
Fix for failing assertion on native modules Issue #1354 ( #1370 )
2019-07-23 13:02:08 +02:00
Dave Halter
3ed9e836cc
Make sure __wrapped__ works properly when using an Interpreter, fixes #1353
2019-07-10 16:12:57 -07:00
Dave Halter
aa2dc6be09
Return annotations for compiled objects now help to infer
...
However only if it's a type, if it's a string, it doesn't work, yet
Fixes #1347
2019-06-22 00:15:20 +02:00
Dave Halter
f80828cb07
Fix issues with simple_getitem and mixed objects
2019-06-07 03:00:01 +02:00
Dave Halter
65d5c6eb2b
Disable some more tests in Python 2
2019-06-07 02:45:48 +02:00
Dave Halter
94dfe7bf69
Use even more stubs to get more complex completions for e.g. strings working
2019-06-07 02:37:51 +02:00
Dave Halter
97f342fc4c
Fix qualified names for CompiledObject
2019-06-07 01:33:37 +02:00
Dave Halter
a43a6cbc06
Add interpreter tests for collections.Counter
2019-06-06 23:44:55 +02:00
Dave Halter
8c495a1142
More tests for deque
2019-06-06 20:46:19 +02:00
Dave Halter
07f9f241c6
py__call__ is now always available
2019-06-06 10:04:48 +02:00
Dave Halter
84eb91beaa
Add a few tests about simple completions for interpreters
2019-06-06 00:17:37 +02:00
Dave Halter
bade4e661f
Some changes to get stubs working better for mixed objects
2019-06-03 20:28:04 +02:00
Dave Halter
7c56052d58
Make infer public on classes
2019-04-01 09:25:00 +02:00
Dave Halter
7ab3586e52
Merge branch 'master' into typeshed
2019-03-14 09:26:25 +01:00
Dave Halter
92a8a84ff2
Fix sys.path completions, #1298
2019-03-13 21:11:20 +01:00
Dave Halter
b847bb1c72
Some minor test changes to get typeshed almost fully working
2018-11-06 09:00:07 +01:00
Dave Halter
4075c384e6
In some very rare cases it was possible to get an interpreter crash because of this bug. Fixes #1087
2018-04-23 21:26:51 +02:00
Dave Halter
144a1def6c
Fix a few version issues in tests
2018-03-13 22:59:07 +01:00
Dave Halter
f9ec989835
Fix REPL completion param name completion
...
There were two issues:
1. The filter for parameters was wrong
2. In general the equal sign would not be added in some circumstances
2018-03-13 21:36:04 +01:00
Dave Halter
0dda740c5d
Add keyword argument test for #292
2018-03-13 19:09:33 +01:00
Dave Halter
d0b8f9e5a2
Fix an interpreter test in Python 2
2018-03-12 20:49:27 +01:00
Dave Halter
5c1d979522
Fix an issue around __dir__ in the interpreter
...
Fixes #1027 .
2018-03-12 01:46:12 +01:00
Hugo
3e8cd9f128
Use set literals
2018-01-07 10:40:36 +02:00
Hugo
cc623218e5
Replace function call with set literal
2018-01-07 10:40:06 +02:00
Hugo
8cf708d0d4
Remove redundant parentheses
2018-01-07 10:40:06 +02:00
Dave Halter
21531abd1e
Fix a small test error
2017-10-05 20:43:31 +02:00
Dave Halter
7019ca643e
Remove a possible security issue
...
sys paths are not executed anymore and use static analysis now.
2017-10-05 19:57:50 +02:00
Dave Halter
9dd2027299
Way better support for instantiated classes in REPL
...
Fixes several issues:
- It was not possible to correctly trace where instances were coming from in a
REPL. This led to them being pretty much ignored.
- Instances were then just treated as classes and not as actual instances in
MixedObjects. (However since they were ignored in the first place this
wasn't really an issue).
- Avoiding the repr bug https://github.com/python/cpython/pull/2132/files in
Jedi is working a bit differently. We're just never accessing Objects
directly. This should work around 99.99% of the cases were people are using
this stuff.
Fixes #872
2017-09-15 01:55:18 +02:00
Dave Halter
5c6f8bda01
Fix inspect.signature for Python3.4.
2017-09-10 01:34:15 +02:00
Dave Halter
d1c85191a0
Start using inspect.signature for CompiledObject params.
...
Fixes 917 and 924.
2017-09-09 22:29:00 +02:00
Dave Halter
c4601b835f
Don't go crazy with big lists.
2017-09-07 01:26:53 +02:00