Commit Graph
100 Commits
Author SHA1 Message Date
Dave Halter 7a988d9d8b Python 2 test fixes 2019-12-24 19:52:44 +01:00
Dave Halter 6daa03e98d Add the fix for #997 to the changelog 2019-12-24 12:51:14 +01:00
Dave Halter 9578e4252b Goto on a function/attribute in a class now goes to the definition in its super class, fixes #1175 2019-12-24 12:49:23 +01:00
Dave Halter a21f443756 Fix a few tests 2019-12-24 12:32:13 +01:00
Dave Halter 1d17033717 Add support for completion even when __getattr__ is present, fixes #997 2019-12-24 01:44:53 +01:00
Dave Halter eca8278eef Fix an error recovery goto issue, fixes davidhalter/jedi-vim#962 2019-12-23 10:09:45 +01:00
Dave Halter d9383f1927 Add a test to make sure some renamings work always
fixes davidhalter/jedi-vim#552
2019-12-23 00:48:01 +01:00
Dave Halter 1087b62e95 Refactor references: Matching more names that might be related
Fixes davidhalter/jedi-vim#900.
See also davidhalter/jedi-vim#552.
2019-12-23 00:41:22 +01:00
Dave Halter f2a64e24c8 Catch an additional case for get_context where the cursor is e.g. on the function name 2019-12-22 17:35:40 +01:00
Dave Halter fcf8506531 Add Script().get_context, fixes #253 2019-12-22 17:19:01 +01:00
Dave Halter 22c3beffd0 Fix some issues with Definition.parent() 2019-12-22 15:37:53 +01:00
Dave Halter 0202d4ed0a Test parents a bit better 2019-12-22 14:32:07 +01:00
Dave Halter 63a9418bd5 Refactor tests a bit 2019-12-22 02:32:31 +01:00
Dave Halter fc785ce6ea Attribute docstrings work now, fixes #138 2019-12-22 02:05:40 +01:00
Dave Halter 4161bfc7f2 Avoid some duplication of code 2019-12-22 01:24:50 +01:00
Dave Halter 290d1c151a Remove the _Help class completely 2019-12-21 20:07:43 +01:00
Dave Halter fcede44c2a Move the docstring checking code to the names 2019-12-21 20:06:37 +01:00
Dave Halter 536fd8c7c0 Add the Script.help function, fixes #392 2019-12-21 12:46:58 +01:00
Dave Halter 341d79681a Add big API changes to Changelog 2019-12-21 03:12:28 +01:00
Dave Halter 66a36c3b94 Merge branch 'api', fixes #1166 2019-12-20 20:05:10 +01:00
Dave Halter fcecac20ec Add tests to fix all the deprecations 2019-12-20 20:03:12 +01:00
Dave Halter 9e818dc377 Test setting line/column multiple times 2019-12-20 20:03:00 +01:00
Dave Halter e5496381f3 sith now also uses the new API 2019-12-20 19:45:20 +01:00
Dave Halter 5fc308f1f8 call signature -> signature 2019-12-20 19:41:57 +01:00
Dave Halter 694b05bb8c usage -> reference 2019-12-20 19:26:33 +01:00
Dave Halter bd861e40a8 Rename references file 2019-12-20 19:25:46 +01:00
Dave Halter e1d787821b usages -> find_references 2019-12-20 19:23:26 +01:00
Dave Halter adff6d34a4 goto_assignment -> goto everywhere where it was left 2019-12-20 19:15:41 +01:00
Dave Halter d7d9c9642a Don't use goto_definitions anymore, use infer 2019-12-20 19:06:24 +01:00
Dave Halter 4bbaec68e8 Make sure goto_definitions is no longer used in the main code 2019-12-20 18:47:04 +01:00
Dave Halter dbb61357c3 Make sure that jedi.names is not references anymore 2019-12-20 18:04:47 +01:00
Dave Halter f90aeceb27 Move names to Script and mark deprecations 2019-12-20 17:55:45 +01:00
Dave Halter 7f8ba17990 Get rid of all completions usages 2019-12-20 17:47:37 +01:00
Dave Halter 5bf6e7048b A few renames for readability in the api/completion.py file 2019-12-20 17:40:04 +01:00
Dave Halter ebe9921208 Try to use the new API names everywhere 2019-12-20 17:29:42 +01:00
Dave Halter f03c70e577 Refactor run.py to use the new API 2019-12-20 17:25:44 +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 2b5af19989 Fix signature issues 2019-12-20 16:14:01 +01:00
Dave Halter bcf726054e Make sure the line numbers are validated for the new API methods 2019-12-20 16:00:49 +01:00
Dave Halter 1514695fc1 usages -> find_references, see #1166 2019-12-20 15:46:17 +01:00
Dave Halter f32b0aebeb call_signatures -> find_signatures 2019-12-20 15:41:20 +01:00
Dave Halter 6c7b8f669f goto_definitions -> infer; goto_assignments -> goto, see #1166 2019-12-20 15:35:19 +01:00
Dave Halter 87d5334b9e completions -> complete, see #1166 2019-12-20 15:30:35 +01:00
Dave Halter cefc4a46a3 Add latest changes to Changelog 2019-12-20 14:57:58 +01:00
Dave Halter 39605bfa08 Make sure goto_assignments is no longer used on Definition 2019-12-20 14:43:20 +01:00
Dave Halter 1f4be4bc51 Make sure that goto is used instead of goto_assignments 2019-12-20 14:31:42 +01:00
Dave Halter afbd8cad89 Don't test Python 3.4 in tox anymore by default 2019-12-20 11:52:19 +01:00
Dave Halter 0194efcd6b Add the release date to Changelog 2019-12-20 11:26:55 +01:00
Dave Halter 96156dd5df Jedi needs at least parso 0.5.2 now 2019-12-20 11:00:37 +01:00
Dave Halter 095a9c530a Fix a rb byte literal test 2019-12-20 10:49:28 +01:00
Dave Halter 45edfbdeeb Goto definition doesn't work on strings anymore, fixes microsoft/vscode#81520 2019-12-20 10:29:54 +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 902b355aea Avoid recursion in a specific example, see also #1458 2019-12-20 01:33:41 +01:00
Dave Halter 41a6591d88 Completions.complete returns None for fuzzy completions #1409 2019-12-15 19:56:56 +01:00
Dave Halter f91f655d55 Cleanup fuzzy tests a bit, see #1409 2019-12-15 19:50:43 +01:00
Dave Halter 49eb2c0a12 Add fuzzy completions to Changelog 2019-12-15 19:12:48 +01:00
Dave Halter ec2391c74f Merge branch 'feature_827_fuzzy_search' of https://github.com/jmfrank63/jedi 2019-12-15 19:08:33 +01:00
Dave Halter 0ce414eb94 Python 2 compatibility 2019-12-15 18:52:16 +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 9d35adda02 Make sure that a goto on stubs even without the implementation is possible 2019-12-15 18:00:09 +01:00
Dave Halter 6e2a76feb9 Fix a goto case with nested pyi files 2019-12-15 17:37:24 +01:00
Dave Halter 35442eff81 Catch some cases were _sqlite3.Connection was misidentified as sqlite3.Connection 2019-12-15 16:15:55 +01:00
Dave Halter 8fc84a2aaa Rename goto_changes to options 2019-12-15 14:36:36 +01:00
Dave Halter 7bdedb40e3 Fix: Stubs in typeshed weren't loaded properly sometimes, fixes #1434 2019-12-14 21:33:00 +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 5bc6ce231b Add a typeshed README 2019-12-14 11:27:52 +01:00
Dave Halter a6bf49783f Make sure param annotation completions work 2019-12-14 02:55:11 +01:00
Dave Halter 621e280451 Make sure that you can select virtualenvs more precisely, fixes #1407 2019-12-13 21:00:34 +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 902f0754e0 qualified names can be None, so we need to handle it 2019-12-13 14:36:05 +01:00
Dave Halter 12b07a435d Cleanup some callbacks 2019-12-13 12:47:55 +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 536a77551b Account for sys path potentially not being all unicode in typeshed, fixes #1456
This is a bit stupid, but don't care too much, it will get removed soon, when
Python 2 support is going to get removed.
2019-12-11 00:30:37 +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 28ecc2709a Don't use globals anymore 2019-12-09 00:15:21 +01:00
Dave Halter 33224ae7e1 Remove a duplicate method 2019-12-09 00:11:51 +01:00
Dave Halter d9260bf78b More docstrings 2019-12-09 00:07:07 +01:00
Dave Halter a51dc54759 A bit better documentation 2019-12-09 00:02:44 +01:00
Dave Halter 5acbb06315 Refactor so typing uses BaseTypingValueWithGenerics
This makes it finally possible to use type vars with Callable and some other classes.
Fixes #1413
2019-12-08 23:50:57 +01:00
Dave Halter 7319f8bf2c Make some more classes private for inference.gradual.base 2019-12-08 23:15:31 +01:00
Dave Halter d9ddaa31ae Use _create_instance_with_generics 2019-12-08 23:09:55 +01:00
Dave Halter 5874b0bd69 The generics manager is now part of DefineGenericBase 2019-12-08 23:03:15 +01:00
Dave Halter 9eef771ec5 Remove get_index_and_execute and use something else 2019-12-08 22:55:52 +01:00
Dave Halter 9e6c53151b _InstanceWrapper to _GenericInstanceWrapper 2019-12-08 22:47:07 +01:00
Dave Halter 84d10657a3 Another rename for readability 2019-12-08 22:46:35 +01:00
Dave Halter 5c4b3da45d Merge GenericClass and _AbstractAnnotatedClass 2019-12-08 22:45:30 +01:00
Dave Halter ad92882c48 Use the generics manager for all the typing classes 2019-12-08 22:42:01 +01:00