Dave Halter
8fc84a2aaa
Rename goto_changes to options
2019-12-15 14:36:36 +01:00
Dave Halter
3219f14c63
Files bigger than one MB (about 20kLOC) get cropped to avoid getting stuck completely
...
Fixes #843
2019-12-14 12:39:40 +01:00
Dave Halter
7639bc2da9
Upgrade typeshed, fixes #1084
2019-12-14 11:38:37 +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
92c59180fd
Make sure goto definitions works on with, fixes #1280
2019-12-13 16:57:18 +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
b9f8a7f52e
Make sure that Python 2 passes a test on more systems
2019-12-13 12:28:03 +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
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
a2cebc4b92
Make sure docstrings can always be inferred for builtins modules, fixes #1432
2019-12-11 00:06:58 +01:00
Dave Halter
3065609162
Forgot to add some test files
2019-12-09 19:26:24 +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
ed3fdf8876
Make sure classmethod signatures don't include cls, fixes #1455
2019-12-09 08:58:59 +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
0474371f23
Make sure overload signatures work, see #1417
2019-12-07 00:30:37 +01:00
Dave Halter
c582545628
Shorten a line to < 100 chars
2019-12-06 16:41:47 +01:00
Dave Halter
759808e8bb
Fix a tuple test
2019-12-05 20:01:27 +01:00
Dave Halter
36b800f8d3
Make sure that Tuple autocompletes properly, fixes #1389
2019-12-05 18:55:33 +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
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
19aa50bb7f
Make sure an assert no longer causes unnecessary trouble
...
Fixes #1426 , fixes #1414
2019-12-03 23:10:24 +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
74de9e7d53
Make sure that the differences are calculated a bit more reliable, fixes #1429
2019-12-02 00:22:15 +01:00
Dave Halter
f54291a30b
Unfortunately commited something that should not have been committed
2019-12-02 00:11:29 +01:00
Dave Halter
4d3f6fa790
Fix Python 2 issues
2019-12-02 00:04:22 +01:00
Dave Halter
b8dfbc5d18
A CompiledInstance is not really compiled, it's an instance of a compiled class value
2019-12-01 23:50:46 +01:00
Dave Halter
8a26a23884
Make is_package a function and call it consistently
2019-12-01 19:31:31 +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
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
Dave Halter
0e92be66db
Fix an issue around completions in comments before strings
2019-11-29 13:44:12 +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
Dave Halter
15c13c1386
Fix the pow test for Python 3.8
2019-11-27 20:12:50 +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
a6fcf779d4
Fix a small issue created in #1398
2019-09-21 23:29:07 +02:00
Levente Polyak
527ef6fcdd
fix static analysis test skips with latest pytest
...
Latest pytest ensures pytest.skip is being called with a str parameter.
However, test_static_analysis passed over the skip parameter which
contains a tuple returned from skip_python_version leading to test
regression.
Unify the version skip reasons for both, static analysis and integration
tests by using a shared BaseTestCase parent to avoid code duplication.
Furthermore handle test_static_analysis skip_reason extraction
orthogonal to test_completion.
2019-09-21 21:42:05 +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
66022edf14
Skip Python 2 tests for some array issues
2019-09-06 00:04:44 +02:00
Dave Halter
ae79919eb4
Skip some param resolving tests in Python 2/3.4
2019-09-05 18:27:37 +02:00
Dave Halter
fbe58306c3
Add a few tests for a previous assertion failure
2019-09-05 10:57:04 +02:00