Commit Graph
100 Commits
Author SHA1 Message Date
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
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 8d24e35fa9 Fix signatures for builtin methods 2019-05-27 20:33:58 +02:00
Dave Halter fc4d1151c7 Remove even more code that is probably not needed 2019-05-27 19:14:56 +02:00
Dave Halter c9e3e6902b Removed dead code 2019-05-27 19:06:57 +02:00
Dave Halter 2a3ecbac60 Remove Coroutine classes again, they may not be needed after all 2019-05-27 09:47:32 +02:00
Dave Halter 8e27c60120 Fix async function inferring with decorators, fixes #1335 2019-05-27 09:47:05 +02:00
Dave Halter 11f3eece6d Preparations for some async changes 2019-05-27 09:41:50 +02:00
Dave Halter 7bd3669220 A small test change 2019-05-24 10:36:14 +02:00
Dave Halter 9aa8f6bcf2 Better signature calculation 2019-05-23 01:36:51 +02:00
Dave Halter b2b08ab432 Better annotation signature string for classes 2019-05-22 20:34:35 +02:00
Dave Halter 3bec1a6938 Better signature generation 2019-05-22 20:31:30 +02:00
Dave Halter 9bb88b43ca Fix stub_to_actual_context_set for bound methods 2019-05-22 10:35:04 +02:00
Dave Halter a2931d7a48 Introduce is_bound_method 2019-05-22 10:19:47 +02:00
Dave Halter d241c31e3c Try to make qualified_names access clearer 2019-05-22 10:10:37 +02:00
Dave Halter b1e6901d61 Some more signature tests 2019-05-22 00:51:52 +02:00
Dave Halter f46d676130 Fix signature tests 2019-05-22 00:44:20 +02:00
Dave Halter 9463c112df Cleanup of finalizer did not work properly 2019-05-22 00:26:27 +02:00
Dave Halter d44e7086d7 For now use parso master for tox testing 2019-05-22 00:17:42 +02:00