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
a2cebc4b92
Make sure docstrings can always be inferred for builtins modules, fixes #1432
2019-12-11 00:06:58 +01:00
Dave Halter
8e33fd1931
Get the context of a class name right, fixes #1396
2019-12-09 09:56:03 +01:00
Dave Halter
759808e8bb
Fix a tuple test
2019-12-05 20:01:27 +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
700bd12122
Improve call signature detection by a lot
...
Fixes #1399
2019-12-04 23:55:26 +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
6ffeea7eea
Make sure code_lines works on stubs, even if they are builtins
2019-12-01 19:10:08 +01:00
Dave Halter
0e92be66db
Fix an issue around completions in comments before strings
2019-11-29 13:44:12 +01:00
Johannes Maria Frank
2039ab9a3c
Fixed pytest fixtures for test_api
2019-10-22 16:47:06 +01:00
Johannes Maria Frank
d48816603e
Sorted scandir results to have completions ordered
2019-10-22 16:34:47 +01:00
Johannes Maria Frank
f7fae4dde7
Added file fuzzy match and refactored
2019-10-22 15:50:16 +01:00
Johannes Maria Frank
2653752f9c
Corrected formatting
2019-10-21 15:44:03 +01:00
Johannes Maria Frank
d73f32745d
Fixed bug for python 2
2019-10-10 15:02:00 +02:00
Johannes Maria Frank
1fa678e3fe
Corrected an error in the math fuzzy completion test
2019-10-10 13:23:33 +02:00
Johannes Maria Frank
a84087682d
Adopted results for different python versions
2019-10-10 12:10:19 +02:00
Johannes Maria Frank
48ffc5473a
Added test for math og
2019-10-09 10:37:46 +02:00
Johannes Maria Frank
0b56bf8f08
Added completions test with fuzzy=True
2019-10-04 17:18:01 +01:00
Johannes Maria Frank
85278242c3
Switched to fuzzy boolean
2019-10-02 00:28:31 +01:00
Johannes Maria Frank
8f306953da
Added experimental substring and fuzzysearch
2019-09-26 08:17:30 +01:00
Dave Halter
88ebb3e140
Get a few more tests passing about dict key strings
2019-09-23 21:05:01 +02:00
Dave Halter
954fd56fcc
Get some more dict completions working
2019-09-23 09:21:43 +02:00
Dave Halter
e8afb46cde
Get the first dict completions passing
2019-09-23 09:18:26 +02:00
Dave Halter
a6fcf779d4
Fix a small issue created in #1398
2019-09-21 23:29:07 +02:00
Maxim Cournoyer
96d650cab3
test: test_completion: Dynamically resolve current directory name.
...
This fixes issue #1395 (see:
https://github.com/davidhalter/jedi/issues/1395 ).
* test/test_api/test_completion.py(current_dirname): New variable.
(test_file_path_completions): Use it.
2019-09-19 23:35:18 +02:00
Dave Halter
e179b3e526
Add a test for dict key completions
2019-09-07 02:58:21 +02:00
Dave Halter
a9f1d3d9bb
Reenable a test
2019-09-05 10:09:33 +02:00
Dave Halter
1db3e9a65d
Disable a test in Python2
2019-09-05 10:03:50 +02:00
Dave Halter
286d2c9b1a
Make the order of overloaded functions correct
2019-08-30 01:11:11 +02:00
Matthias Bussonnier
5329f95096
Attempt at a test of completion of filepath after ~.
...
I'm not quite sure how this will behave on windows, and we can't really
create a tempdir (as we don't want to mess with path on home.
One possibility would be to mock/monkeypatch scandir, listdir and
os.path.expanduser or set $HOME in env; but I'm quite unsure we want to
go that route.
2019-08-25 19:55:33 +02:00
Dave Halter
6d361e03ac
Avoid import recursions in other ways
2019-08-24 02:06:57 +02:00
Dave Halter
ecc574025c
Merge branch 'ngates/comprehension-parent' of https://github.com/gatesn/jedi into refactoring
2019-08-23 13:52:25 +02:00
Dave Halter
84f6d95fde
Fix a python 2 dynamic issue
2019-08-21 09:16:48 +02:00
Dave Halter
03920502c4
infer_state -> inference_state
2019-08-16 11:44:30 +02:00
Dave Halter
9986d8c9aa
Context -> Value
2019-08-15 01:26:11 +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
4619552589
Evaluation -> type inference
2019-08-13 01:29:50 +02:00
Dave Halter
5d0d09bb7d
staticmethod and a few other cases might not have properly returned its signatures
2019-08-12 09:37:59 +02:00
Dave Halter
1ad4003740
Messed up a Windows test
2019-08-11 20:12:33 +02:00
Dave Halter
1108ad9994
Again a small windows issue fixed.
2019-08-11 20:01:12 +02:00
Dave Halter
f7f9b1e5ec
Need to escape the path backslash for windows slashes
2019-08-11 19:56:57 +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
3d0ac09fc9
Don't add quotes after paths if they are already there
2019-08-10 18:37:10 +02:00
Dave Halter
463cbb1595
Fix one more os.path.join issue
2019-08-08 09:31:13 +02:00