Commit Graph
100 Commits
Author SHA1 Message Date
Dave Halter 02ab71ff26 Tests for stub import completions 2019-05-17 16:53:34 +02:00
Dave Halter ac962ea6db Refactor stub completions a bit 2019-05-17 16:21:13 +02:00
Dave Halter 7de5fee3ad Minor change, because of typeshed changes 2019-05-17 16:09:23 +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
Dave Halter 063eef3eaf Call goto_definitions for goto_assigments if we're on a name 2019-05-17 12:37:02 +02:00
Dave Halter b5d1e00930 Deal better with instance conversions for stubs 2019-05-17 12:27:53 +02:00
Dave Halter f53c977069 Fix an issue with stub conversion 2019-05-16 00:52:14 +02:00
Dave Halter 051db30dfb Proper loading for third-party stub packages 2019-05-16 00:45:09 +02:00
Dave Halter 4f64dd30f9 Make sure Python is still loadable in stub only folders 2019-05-15 22:23:23 +02:00
Dave Halter 904c4d04bb Make sure Python is still loadable in mixed stub/python folders 2019-05-15 22:20:57 +02:00
Dave Halter f49d48fbd2 Add a few more tests for nested stub folders 2019-05-15 22:18:22 +02:00
Dave Halter e4170d65b7 Make namespace folders work with stubs 2019-05-15 21:55:54 +02:00
Dave Halter b7eeb60e9c Move stub caching around 2019-05-15 21:10:35 +02:00
Dave Halter 7fc7e631f8 Move a part of stub lookups 2019-05-15 21:06:36 +02:00
Dave Halter 0e95aaeaad A first try to load foo-stub directories 2019-05-15 08:19:46 +02:00
Dave Halter dcbc60e1f0 Add a docstring to mention PEP 561 2019-05-14 21:12:34 +02:00
Dave Halter 03f29c51cf Improve stub loading from random places 2019-05-14 21:09:20 +02:00
Dave Halter 5ff3e4d1d1 Implement stub tests and a first iteration of loading them from some random place 2019-05-13 10:13:59 +02:00
Dave Halter 8b1d4a7824 Fix call signatures, use stubs if possible 2019-05-11 12:44:20 +02:00
Dave Halter 079783e3a1 Move trying to resolve stubs to a different place 2019-05-10 22:33:49 +02:00
Dave Halter 409bf907d9 Fix os path imports 2019-05-10 10:08:14 +02:00
Dave Halter 4a2ada56e5 Remove two asserts that were pointless 2019-05-10 01:31:12 +02:00
Dave Halter de7b638e6c Remove StubClass, it should really not be needed anymore 2019-05-10 01:29:06 +02:00
Dave Halter a6a71c59f4 Move some contents of gradual.stub_contexts to gradual.conversion 2019-05-10 01:24:58 +02:00
Dave Halter e57ff54caa Some minor moving 2019-05-10 01:19:59 +02:00
Dave Halter 1430ac2675 Remove more unused code that was used for goto a long time ago 2019-05-10 01:12:03 +02:00
Dave Halter eb07c0b4cf Remove a bit of code that was used to write goto code and is not used anymore 2019-05-10 01:07:53 +02:00
Dave Halter be6760e427 Introduce get_qualified_names for names, it's easier to implement goto like this 2019-05-10 01:07:21 +02:00
Dave Halter f8f858216f Make goto_assignments in BaseDefinition simpler 2019-05-08 22:00:13 +02:00
Dave Halter 037a069ddd Made TreeArguments methods a bit more understandable 2019-05-08 09:30:39 +02:00
Dave Halter dc15470e0b ImportName should resolve properly to the module that it was designed to resolve for 2019-05-07 09:43:55 +02:00
Dave Halter 895eae1d54 Move all Name classes to a separate file 2019-05-07 00:30:16 +02:00
Dave Halter ad48ec4cfd With typeshed OsPathName is no longer needed 2019-05-07 00:09:19 +02:00
Dave Halter a6693616a0 One more small test change 2019-05-06 23:59:39 +02:00
Dave Halter ea6462daf4 Forgot to add evaluate/names.py earlier 2019-05-06 19:50:26 +02:00
Dave Halter 67d7f8d867 Remove the load_stubs function, it's not needed anymore 2019-05-06 19:50:03 +02:00
Dave Halter ee86b58ab9 Remove a usage of load_stubs, because we are already using stubs 2019-05-06 19:48:15 +02:00
Dave Halter 5099ef15b4 Move ImportName and add os path name to the submodule dict 2019-05-06 09:35:21 +02:00
Dave Halter c675e85d69 Use sub_module_dict for completing modules, not its own function 2019-05-06 09:19:33 +02:00
Dave Halter afced5014c Cleanup stub imports / caching 2019-05-05 22:52:48 +02:00
Dave Halter cabdb7f032 sub_modules_dict improvement 2019-05-05 21:49:55 +02:00
Dave Halter 8fcf885de3 Small refactoring 2019-05-05 21:35:06 +02:00
Dave Halter 2d6c037f39 Some forgotten renames in tests 2019-05-05 21:05:38 +02:00
Dave Halter d9919efb4c is_compiled fix 2019-05-05 21:03:37 +02:00
Dave Halter 1302d8abef Remove _add_non_stubs_in_filter 2019-05-05 21:00:07 +02:00
Dave Halter c6586ed811 Remove _get_base_filters 2019-05-05 20:58:34 +02:00
Dave Halter eb0977b700 helpers.is_compiled -> context.is_compiled 2019-05-05 20:55:18 +02:00
Dave Halter b7c866f5e4 stub_only -> stub 2019-05-05 20:47:48 +02:00
Dave Halter 7c385f72a1 StubOnly -> Stub, for all different classes 2019-05-05 20:46:45 +02:00
Dave Halter 9af8638589 Small test fix 2019-05-05 20:30:11 +02:00
Dave Halter 16ec84efe4 Some test compiled fixes 2019-05-05 20:12:36 +02:00
Dave Halter c0c1aff577 Remove get_call_signature_for_any 2019-05-05 19:51:54 +02:00
Dave Halter 45a5eee18a Better control over docstring generation 2019-05-05 19:50:52 +02:00
Dave Halter d0b0fb3cb3 Docstrings for classes should use the class name and not __init__ 2019-05-05 19:38:01 +02:00
Dave Halter f71d6883d9 Fixed signatures for keywords 2019-05-05 19:25:00 +02:00
Dave Halter 43849d2b8e Remove stub compiled classes 2019-05-05 19:20:12 +02:00
Dave Halter 2d8d4d5c99 Small test fixes for parser utils 2019-05-05 19:17:38 +02:00
Dave Halter 2cb1bd162f Better signature support for docstrings 2019-05-05 19:09:21 +02:00
Dave Halter f996df087e Better docstring help 2019-05-05 17:21:23 +02:00
Dave Halter c647bfa490 Fix a test 2019-05-05 17:09:15 +02:00
Dave Halter a925301caf Remove the rest of the stub contexts 2019-05-05 16:12:55 +02:00
Dave Halter 202b1784a1 Remove with_stub_context_if_possible 2019-05-05 16:04:24 +02:00
Dave Halter 87fd56859d Remove stubify 2019-05-05 16:02:18 +02:00
Dave Halter 73aca23615 Remove get_stub_contexts 2019-05-05 16:00:45 +02:00
Dave Halter 44b9b8787a Some Bugfixes 2019-05-05 15:59:37 +02:00
Dave Halter 171874d288 Fix all gradual tests 2019-05-05 15:33:56 +02:00
Dave Halter 329270e444 Add is_compiled and a few other things to be more compatible with the new way of handling stubs 2019-05-05 13:23:29 +02:00
Dave Halter 4d3a698a12 Refactor things so goto is working in both directions 2019-05-05 01:16:52 +02:00
Dave Halter df9c9d8dff Fix a flask issue 2019-05-01 10:47:20 +02:00
Dave Halter 0e42df2da7 Refactor Jedi so we use stub modules as much as possible 2019-05-01 00:52:02 +02:00
Dave Halter 3afcfccba8 Get the tests passing again 2019-04-14 19:02:43 +02:00
Dave Halter 2f562040ac Fix a few remaining issues about the current branch 2019-04-14 18:44:58 +02:00
Dave Halter 6ced926db0 Try to get some more stub to definitions working and vice versa 2019-04-14 17:37:48 +02:00
Dave Halter ad0000886d Use MethodContext in create_context 2019-04-14 00:17:14 +02:00
Dave Halter 3c74b9bf10 Remove some code that is not necessary anmore, because of an improvment in get_parent_scope 2019-04-13 01:57:50 +02:00
Dave Halter 05eb06d91b Merge remote-tracking branch 'origin/master' into typeshed 2019-04-13 01:52:15 +02:00
Dave Halter 3602c95341 Refactor parent_scope a bit 2019-04-13 01:52:03 +02:00
Dave Halter b2f6758a9c Merge pull request #1313 from CXuesong/master
get_module_names should include top-level async functions when all_scopes=False.
2019-04-13 00:43:58 +02:00
Dave Halter 201cf880f9 Remove an if that was unnecessary 2019-04-12 12:59:21 +02:00
Dave Halter 0bf4bf36f0 Small change 2019-04-12 12:54:38 +02:00
Dave Halter 3bef9a67b8 Refactor a bit of create_context 2019-04-12 12:34:07 +02:00
Dave Halter 3ba3d72d6b Fix a small issue 2019-04-12 12:09:03 +02:00
Dave Halter 44639ee50e Better py__getattribute__ for ContextSet 2019-04-11 22:59:54 +02:00
Dave Halter 0f037d0e6c Goto for stubs is now working better 2019-04-11 22:06:23 +02:00
Dave Halter bb050eebed Move creating stub modules 2019-04-11 08:35:16 +02:00
Dave Halter 9f26c27b6d Start adding tests for goto_assignments on stubs 2019-04-10 20:41:05 +02:00
Dave Halter 31442ecb3b Merge branch 'master' into typeshed 2019-04-09 22:58:30 +02:00
Dave Halter 24a06d2bf9 Merge branch 'names-all-scopes-false-returns-class-fields' of https://github.com/immerrr/jedi 2019-04-09 22:58:03 +02:00
Dave Halter e61e210b41 Remove some weird changes about importing again 2019-04-09 21:48:57 +02:00
Dave Halter 255d0d9fb5 Fix builtin import issues 2019-04-09 21:15:33 +02:00
Dave Halter 8c9ac923c6 Fix import names from sys path generation 2019-04-08 19:35:58 +02:00
Dave Halter 85fc799d62 Reintrodue a piece of sys_path code with test
This piece was thought to not be needed. It turns out it is
2019-04-08 10:05:12 +02:00
Dave Halter 3d5b13c25e Test function rename 2019-04-08 01:56:24 +02:00
Dave Halter cccbf50a0e Fix an issue with transform_path_to_dotted 2019-04-08 01:56:05 +02:00
Dave Halter e50f65527d Somehow removed a test when merging 2019-04-08 01:34:12 +02:00
Dave Halter a356859e7e Got something small wrong with compatibility 2019-04-07 22:03:26 +02:00
Dave Halter 96d607d411 Cross Python version fixes for unicode/bytes things 2019-04-07 21:51:25 +02:00
Dave Halter d6232e238a Merge branch 'master' into ts2 2019-04-05 15:44:25 +02:00