Commit Graph
100 Commits
Author SHA1 Message Date
Dave Halter e61949da66 Fix some collections.deque issues 2019-06-15 01:56:49 +02:00
Dave Halter fdad24cc0a Fix some test errors 2019-06-15 01:42:50 +02:00
Dave Halter 3ed30409ea Some progress in trying to make the deque work 2019-06-14 09:36:23 +02:00
Dave Halter 4564275eba By default a name has no qualified names 2019-06-13 09:45:59 +02:00
Dave Halter 9b610c9760 Make sure there are proper tests for goto_assignments with prefer_stubs and only_stubs 2019-06-13 09:41:23 +02:00
Dave Halter 5a26d4cf8f Prefer stubs to Python names when starting to infer 2019-06-13 09:26:50 +02:00
Dave Halter a0adff9d36 Added Changelog for goto_* 2019-06-12 19:04:58 +02:00
Dave Halter ad2fbf71ba Move stub tests 2019-06-12 14:00:56 +02:00
Dave Halter 097b073d20 Undo the tensorflow speedups, because they seem to cause more harm than good, see #1116 2019-06-12 10:00:45 +02:00
Dave Halter ed092e6da7 Better error message, when typeshed is missing, see #1341 2019-06-12 00:08:54 +02:00
Dave Halter 78973a9f35 Move execute_evaluated to HelperContextMixin 2019-06-11 17:46:30 +02:00
Dave Halter f672d3329a Make sure that execute is always called with arguments 2019-06-11 09:37:24 +02:00
Dave Halter be269f3e1c Remove a print 2019-06-10 22:21:41 +02:00
Dave Halter c1047bef4f Ignore warnings for numpydocs 2019-06-10 21:41:15 +02:00
Dave Halter 1b0677ec55 Fix some test imports 2019-06-10 19:48:46 +02:00
Dave Halter 5ef0563abe Don't use stub_to_python_context_set anymore 2019-06-10 19:39:26 +02:00
Dave Halter 56d8945d17 Use convert_context function for docs lookup 2019-06-10 19:17:50 +02:00
Dave Halter 7f853a324a Fix a small copy paste fail 2019-06-10 19:05:03 +02:00
Dave Halter 7f3e55df02 Fix conversion for contexts 2019-06-10 18:56:37 +02:00
Dave Halter 144aa97c00 Fix imports for some tests 2019-06-10 17:41:29 +02:00
Dave Halter 9871fe2adf Be even more strict with numpy doctsring parsing, it should just be ignored if it fails in any ways 2019-06-10 17:40:39 +02:00
Dave Halter 95f3aed82c Eliminate more actual appearances 2019-06-10 16:16:34 +02:00
Dave Halter 8ba3e5d463 Change some names from actual -> python 2019-06-10 16:02:05 +02:00
Dave Halter c8937ccdbf Add only_stubs and prefer_stubs as parameters to goto_assignments/goto_definitions 2019-06-10 15:59:12 +02:00
Dave Halter 49f652a2ad Better comment 2019-06-10 03:27:33 +02:00
Dave Halter 12dbdbf258 qualified names for imports with relative paths have not been solved, yet 2019-06-10 03:20:54 +02:00
Dave Halter abba305f64 Better debugging 2019-06-10 03:19:32 +02:00
Dave Halter d4cccd452d Fix qualified_names for some cases 2019-06-10 03:17:50 +02:00
Dave Halter a555def6ca Use a different function signature instead of a separate goto_stubs function 2019-06-10 02:27:22 +02:00
Dave Halter 827a79861d Add tests for positional only params 2019-06-09 22:56:20 +02:00
Dave Halter 42b6e20729 Changes for 3.8: sync_comp_for instead of comp_for
Please also look at the changes for parso in its b5d50392a4058919c0018666cdfc8c3eaaea9cb5 commit
2019-06-09 18:05:34 +02:00
Dave Halter f3364a458c Better repr for DictFilter 2019-06-09 15:00:18 +02:00
Dave Halter 48b1b9a1aa Make sure that 3.8 is a supported Python environment going forward (and remove 3.3) 2019-06-08 02:11:45 +02:00
Dave Halter 787276366e Use the same environment in 3.8 for travis 2019-06-08 02:05:43 +02:00
Dave Halter 6e758acd16 Add Python 3.7 to travis testing 2019-06-08 01:54:08 +02:00
Dave Halter eef02e5c56 Fix generator issues for typing 2019-06-08 01:50:38 +02:00
Dave Halter 26951f5c18 Fixed a few failing tests, that were failing, because of the qualified_names changes 2019-06-08 01:05:40 +02:00
Dave Halter bb42850d63 Improve the Changelog a bit 2019-06-08 00:29:47 +02:00
Dave Halter 0ff1a88cc4 Use get_qualified_names for full_name 2019-06-08 00:18:31 +02:00
Dave Halter f80828cb07 Fix issues with simple_getitem and mixed objects 2019-06-07 03:00:01 +02:00
Dave Halter 65d5c6eb2b Disable some more tests in Python 2 2019-06-07 02:45:48 +02:00
Dave Halter 94dfe7bf69 Use even more stubs to get more complex completions for e.g. strings working 2019-06-07 02:37:51 +02:00
Dave Halter 97f342fc4c Fix qualified names for CompiledObject 2019-06-07 01:33:37 +02:00
Dave Halter a43a6cbc06 Add interpreter tests for collections.Counter 2019-06-06 23:44:55 +02:00
Dave Halter 8c495a1142 More tests for deque 2019-06-06 20:46:19 +02:00
Dave Halter 5d3028bd1f Fix completions for collections.deque 2019-06-06 20:34:50 +02:00
Dave Halter 07f9f241c6 py__call__ is now always available 2019-06-06 10:04:48 +02:00
Dave Halter 659c043584 Get rid of py__getattribute__ overriding that wasn't needed 2019-06-06 00:49:36 +02:00
Dave Halter b98bf07767 Avoid failing if additional dynamic modules is defined with files that don't exist 2019-06-06 00:43:24 +02:00
Dave Halter 84eb91beaa Add a few tests about simple completions for interpreters 2019-06-06 00:17:37 +02:00
Dave Halter de03b96232 Fix a small issue about accesses 2019-06-05 23:29:45 +02:00
Dave Halter 0d11a94dad Use latest grammar for parsing docstrings 2019-06-05 23:03:15 +02:00
Dave Halter da4e6f275e Fix stub lookups for MixedObject 2019-06-05 19:46:40 +02:00
Dave Halter b24e782b7d Cleaned up create_context for methods
Some improvements made a lot of things clearer about function/method contexts, therefore
the code is now clearer.
2019-06-05 10:11:51 +02:00
Dave Halter 1139761525 Fix some of the mixed test failures 2019-06-05 00:28:48 +02:00
Dave Halter 0a56211df8 Setting correct parents for CompiledObject filters 2019-06-04 23:31:42 +02:00
Dave Halter 586354b571 Remove the unused function get_node 2019-06-03 20:33:03 +02:00
Dave Halter bade4e661f Some changes to get stubs working better for mixed objects 2019-06-03 20:28:04 +02:00
Dave Halter c8d658e452 A first very incomplete implementation of named expression support 2019-06-03 00:11:49 +02:00
Dave Halter 30526c564e Correct some regex SyntaxWarnings 2019-06-03 00:06:23 +02:00
Dave Halter 8ec6f54f86 Fix an issue about boolean params resolving 2019-06-02 18:31:52 +02:00
Dave Halter 1213b51c66 Imports completions after a semicolon work now 2019-06-02 17:54:00 +02:00
Dave Halter c6173efe61 Remove sith test from travis. Never looked it it. Just run it locally 2019-06-01 18:21:40 +02:00
Dave Halter 5ba8fd1267 Fix none test for Python 2 2019-06-01 17:58:01 +02:00
Dave Halter 4aa91efc2e Get python3.4 on travis working 2019-06-01 12:18:21 +02:00
Dave Halter 448f08b74e Merge branch 'travis' of https://github.com/blueyed/jedi into travis 2019-06-01 12:00:36 +02:00
Dave Halter b4e41ef953 Don't use logger, use debug, which is used everywhere 2019-05-31 23:45:22 +02:00
Dave Halter fcf214b548 Start using file io when opening random modules 2019-05-31 23:42:19 +02:00
Dave Halter b9e8bff5e2 Start using FileIO in modules 2019-05-31 22:10:49 +02:00
Dave Halter 9c40c75136 Add file_io for Jedi for listdir 2019-05-31 21:25:48 +02:00
Dave Halter 77bd393a92 Simplified module repr 2019-05-31 21:11:12 +02:00
Dave Halter 55d40e22b3 Apparently numpydoc can fail with numpydoc.docscrape.ParseError as well, just ignore all exceptions 2019-05-31 17:54:21 +02:00
Dave Halter 190793d82f Fix an AttributeError 2019-05-31 17:44:03 +02:00
Dave Halter d6c89ced99 goto should work on globals 2019-05-31 17:41:34 +02:00
Dave Halter d9332aec8c Fix tuple unpacking for special case 2019-05-31 17:07:51 +02:00
Dave Halter cdc9520c9d Fix an issue with None docstrings 2019-05-31 15:31:46 +02:00
Dave Halter 6cdde65052 Fix an issue with namedtuples 2019-05-31 15:21:03 +02:00
Dave Halter 6d62e55b5e Fix a small issue regarding typing filters, fixes #1339 2019-05-31 14:19:48 +02:00
Dave Halter ed93bbfb68 Cleanup the mess of comprehensions at least a bit 2019-05-31 14:04:37 +02:00
Dave Halter 39eefdbc00 Remove a TODO that was already done 2019-05-31 13:38:42 +02:00
Dave Halter 1e9e684575 GeneratorBase -> GeneratorMixin 2019-05-31 13:37:01 +02:00
Dave Halter 3fb5b4992b Fix: Function calls with generators should always work, even if syntastically invalid 2019-05-31 13:35:23 +02:00
Dave Halter 4d647238b3 Fix sith.py line number generation 2019-05-31 11:18:49 +02:00
Dave Halter f83c38f5c1 Fix a very random issue with executed contexts 2019-05-31 11:05:34 +02:00
Dave Halter f7076da700 Get rid of follow_definition and replace it with infer 2019-05-31 00:35:18 +02:00
Dave Halter 9a713bc36f Fix create_context for param default arguments/annotations 2019-05-31 00:21:35 +02:00
Dave Halter c6dcfcdf6d Remove code that is not used anymore 2019-05-30 01:29:56 +02:00
Dave Halter df038d8f05 Modules are obviously not executable, but should not lead to traceback when executed 2019-05-30 00:17:38 +02:00
Dave Halter 0e5b17be85 Tests and fixes for keyword completions 2019-05-29 01:26:38 +02:00
Dave Halter 4b3262622b Fix generator issues that were caused by the small refactoring 2019-05-28 23:27:25 +02:00
Dave Halter 3ef99863ee Even more indent increases for debugging 2019-05-28 18:58:58 +02:00
Dave Halter 255d4fc04f Better debugging with the increase_indent_cm 2019-05-28 18:50:46 +02:00
Dave Halter 742f385f23 Add a context manager for increasing indents 2019-05-28 10:53:05 +02:00
Dave Halter 0cc7ea9bc9 Fix crazier subscript operations 2019-05-28 10:20:06 +02:00
Dave Halter b39928188f Rewrite BuiltinOverwrite with ContextWrappers 2019-05-28 09:48:54 +02:00
Dave Halter 946869ab23 Fix tests 2019-05-28 01:59:32 +02:00
Dave Halter 5fa8338886 Enable a test that is kind of xfailing 2019-05-28 01:55:22 +02:00
Dave Halter ec7b6b8d80 Fix stub function inferrals 2019-05-28 01:51:37 +02:00
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