Commit Graph
100 Commits
Author SHA1 Message Date
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
Dave Halter c05629b3de Adapt small changes in parso's FileIO 2019-05-22 00:03:01 +02:00
Dave Halter c64ee8a07c Make it clear what a param needs to implement 2019-05-21 18:21:40 +02:00
Dave Halter 857f6a79ae Merge branch 'master' of github.com:davidhalter/jedi 2019-05-21 13:39:27 +02:00
Dave Halter b17e7d5746 A work in progress improvement for compiled signatures 2019-05-21 09:37:17 +02:00
Dave Halter 95cd8427f4 Fix a NotImplementedError when loading random modules 2019-05-20 09:54:41 +02:00
Dave Halter 03de39092a Reindent some code 2019-05-20 09:34:12 +02:00
Dave Halter aa924cd09b Small change for a comment 2019-05-20 09:30:13 +02:00
Dave Halter beacb58eb1 Remove a NotImplementedError and a bit of code where we don't seem to pass anymore 2019-05-20 09:20:49 +02:00
Dave Halter 70527d7329 Merge branch 'repr' of https://github.com/blueyed/jedi
Fixed a small merge conflict by hand.
2019-05-20 00:31:32 +02:00
Dave Halter f01b2fb4d9 Merge pull request #1160 from blueyed/pytest
py.test -> pytest renamings. Originally "Revisit pytest config"
2019-05-20 00:23:20 +02:00
Dave Halter 655344c09c Merge branch 'master' into pytest 2019-05-20 00:21:57 +02:00
Dave Halter d2d1bb4def Raise a speed limit a bit to avoid false positives 2019-05-19 18:22:47 +02:00
Dave Halter b5016d6f43 Another try with MANIFEST.in 2019-05-19 18:13:18 +02:00
Dave Halter 7583d297ad Deal with SyntaxErrors coming from numpydoc when used with Python 2 2019-05-19 18:12:01 +02:00
Dave Halter 146ddd5669 Fix a few unicode accesses for Python 2 2019-05-19 17:52:35 +02:00
Dave Halter ffd720c323 Rewrite reversed a bit 2019-05-19 17:51:30 +02:00
Dave Halter 8cad21819c Add only stubs/README/LICENSE, when packaging typshed 2019-05-19 17:14:49 +02:00
Dave Halter 016e66846b After upgrading tox, packaging works again 2019-05-19 17:11:29 +02:00
Dave Halter 6cf6903d32 It should be possible to pass posargs to pytest for tox 2019-05-19 17:01:25 +02:00
Dave Halter ea490b9a2b Remove remap_type_vars, which was never used 2019-05-19 16:15:52 +02:00
Dave Halter 7ec76bc0b5 Remove get_matching_functions, it was unused code 2019-05-19 16:06:22 +02:00
Dave Halter 4b2518ca9a Remove special objects, they are no longer needed 2019-05-19 14:28:39 +02:00
Dave Halter 1b668966ce Better completions for MethodType 2019-05-19 14:27:09 +02:00
Dave Halter c4f0c7940f Remove MODULE_CLASS in favor of a typeshed solution 2019-05-19 14:22:03 +02:00
Dave Halter f9eedfbf64 Remove FUNCTION_CLASS, in favor of a typeshed solution 2019-05-19 14:19:30 +02:00
Dave Halter 05a3d7a3bc Remove _create_class_filter, it was unused 2019-05-19 14:06:21 +02:00
Dave Halter cbd16e6d6b Bump latest grammar from 3.6 to 3.7 2019-05-19 14:03:29 +02:00
Dave Halter 7d41fb970e Fixed a typo 2019-05-19 14:02:29 +02:00
Dave Halter 3251d8ffe6 Bump Jedi version to 0.13.0 2019-05-19 14:02:15 +02:00
Dave Halter 6eb92f55df Apparently we need to whitelist pytest for tox to avoid a warning 2019-05-19 13:59:49 +02:00
Dave Halter c654301f22 Add thirdpart/typeshed to MANIFEST.in 2019-05-19 13:59:25 +02:00
Dave Halter 55feb95d41 Fix an issue with the latest typeshed upgrade in tests 2019-05-19 13:27:38 +02:00
Dave Halter 9e29e35e16 Upgrade typeshed 2019-05-19 13:27:25 +02:00
Dave Halter 8db3bb3dc1 Upgrade typeshed to latest master and fix reversed execution 2019-05-18 23:35:28 +02:00
Dave Halter 7f5225cb70 Fix a setup.py assertion 2019-05-18 22:34:19 +02:00
Dave Halter dc2f4e06c8 Fix a few casts for Python 2/3 interopability 2019-05-18 20:51:42 +02:00
Dave Halter 61ccbb0d3e Make sure to use a python 3 parser for stub files 2019-05-18 18:25:32 +02:00
Dave Halter 4176af337f A few Python 2 fixes 2019-05-18 01:09:09 +02:00