1
0
forked from VimPlug/jedi
Commit Graph

70 Commits

Author SHA1 Message Date
Dave Halter 6f41530a03 Very small refactoring 2019-05-27 23:57:23 +02:00
Dave Halter 1002acf907 Rename AnnotatedClass to GenericClass 2019-05-27 21:21:42 +02:00
Dave Halter d2355ea53b Remove dead code 2019-05-27 21:12:08 +02:00
Dave Halter bee9bd7621 given_types -> generics 2019-05-27 21:08:19 +02:00
Dave Halter 5a6d8ba010 Implement typing.cast 2019-05-27 20:59:04 +02:00
Dave Halter 9bb88b43ca Fix stub_to_actual_context_set for bound methods 2019-05-22 10:35:04 +02:00
Dave Halter ea490b9a2b Remove remap_type_vars, which was never used 2019-05-19 16:15:52 +02:00
Dave Halter 05a3d7a3bc Remove _create_class_filter, it was unused 2019-05-19 14:06:21 +02:00
Dave Halter dc2f4e06c8 Fix a few casts for Python 2/3 interopability 2019-05-18 20:51:42 +02:00
Dave Halter 4176af337f A few Python 2 fixes 2019-05-18 01:09:09 +02:00
Dave Halter 0fb5fd271a Better scanning for module names, now includes namespace packages and stubs 2019-05-18 00:11:08 +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 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 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 409bf907d9 Fix os path imports 2019-05-10 10:08:14 +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 895eae1d54 Move all Name classes to a separate file 2019-05-07 00:30:16 +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 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 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 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 43849d2b8e Remove stub compiled classes 2019-05-05 19:20:12 +02:00
Dave Halter f996df087e Better docstring help 2019-05-05 17:21:23 +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