Commit Graph
100 Commits
Author SHA1 Message Date
Dave Halter 5e7ff808d4 Fix f-string evaluation, fixes #1248 2018-12-23 15:32:37 +01:00
Dave Halter 86fbf3fef6 Fixed a string deprecation warning, fixes #1261 2018-12-22 22:49:23 +01:00
Dave Halter 24174632d4 Fix some bugs of the last few commits 2018-12-22 22:08:54 +01:00
Dave Halter 1065768c77 Use ContextualizedNode instead of Node in get_calling_nodes
This improves working with these nodes by a lot.
2018-12-22 14:55:37 +01:00
Dave Halter ca784916bb Fix get_modules_containing_name 2018-12-22 14:33:24 +01:00
Dave Halter fcda3f7bc5 Properly handle no __getitem__ on CompiledObject 2018-12-20 00:34:15 +01:00
Dave Halter fcda62862c Fix calculate_dotted_path_from_sys_path. It was broken beyond stupid. 2018-12-18 09:30:49 +01:00
Dave Halter 881ffadb5c Python 3.7 was not disabled in the right way for travis 2018-12-16 19:24:10 +01:00
Dave Halter 7b20ad7749 Make a doctest simpler that only led to issues in the past 2018-12-16 19:22:17 +01:00
Dave Halter ddef626e66 Disable Python 3.7 on travis again for now 2018-12-16 19:17:46 +01:00
Dave Halter 50399935c9 Revert "Get rid of the fancy magic of preinstalling Python versions"
This reverts commit b561d1fc17.
2018-12-16 19:15:53 +01:00
Dave Halter 57587f71ab Make it possible that tests work also on Windows 2018-12-16 19:09:08 +01:00
Dave Halter b561d1fc17 Get rid of the fancy magic of preinstalling Python versions 2018-12-16 18:58:04 +01:00
Dave Halter ed90a69e2c Clone appveyor submodules recursively 2018-12-16 18:57:26 +01:00
Dave Halter 3703c43d62 Testing the nightly should use a more modern Python version 2018-12-16 18:27:47 +01:00
Dave Halter 30c2e64d9e py__name__ does not need to be defined 2018-12-16 18:24:10 +01:00
Dave Halter af12789762 Try to fix the appveyor config 2018-12-16 18:20:00 +01:00
Dave Halter 9bf2b9f6e4 Add Python 3.7 to appveyor 2018-12-16 18:18:00 +01:00
Dave Halter 50edd82268 Add 3.7 to to travis config 2018-12-16 18:16:50 +01:00
Dave Halter babf074448 Sometimes os_path_join is really too slow :( 2018-12-16 17:58:44 +01:00
Dave Halter 9d3043ee39 Cloning typeshed should be possible without git write access 2018-12-16 17:40:41 +01:00
Dave Halter 33b73d7fbc Typing does not need to be installed for Jedi to work, vendored typeshed is enough 2018-12-16 17:26:56 +01:00
Dave Halter af51c9cc33 Fix Python 3 with Python 2 environment issues 2018-12-16 17:13:02 +01:00
Dave Halter f55da1e1d6 Fix isues with Python 2.7 running a 3.6 env 2018-12-16 15:53:42 +01:00
Dave Halter ba0d71bef1 Simplify tox.ini 2018-12-16 15:53:21 +01:00
Dave Halter add33f5f80 Fix grammar cache problems, because multiple grammars were potentially loaded 2018-12-16 13:14:05 +01:00
Dave Halter 79189f243a Upgrade typeshed version 2018-12-16 00:13:54 +01:00
Dave Halter 81b42c8633 Fix a test for Python 2 2018-12-15 22:27:45 +01:00
Dave Halter 541a8d3a3e Fix some doctests that were slightly changed because of stubs 2018-12-15 22:20:05 +01:00
Dave Halter 3cbba71e7e Merge branch 'master' into typeshed 2018-12-15 22:19:02 +01:00
Dave Halter 9617d4527d setup.py was not executable in Python3.7 2018-12-15 22:18:42 +01:00
Dave Halter dc77c12e83 Fix pytest issues with this branch 2018-12-15 20:48:58 +01:00
Dave Halter 3ec78ba6c9 Merge branch 'master' into typeshed 2018-12-15 20:38:03 +01:00
Dave Halter 86ae11eb43 Add a new release 0.13.2 2018-12-15 20:09:36 +01:00
Dave Halter 078595f8d7 Merge pull request #1262 from hoefling/pytest-marks
Use `pytest.param` when marking single parameters
2018-12-15 19:14:56 +01:00
Dave Halter a21eaf9dba Merge remote-tracking branch 'origin/master' into typeshed 2018-12-15 19:05:10 +01:00
Dave Halter 249564d6ea Merge remote-tracking branch 'origin/master' into typeshed 2018-12-15 18:20:51 +01:00
Dave Halter 90a28c7b1e Don't make complicated subprocess calls for version info comparisons 2018-12-15 17:10:40 +01:00
Dave Halter 46da1df5ae Add an assert that makes it impossible to nest classes of the same type 2018-12-14 09:37:30 +01:00
Dave Halter fda6409600 Cache _apply_decorators 2018-12-14 09:36:13 +01:00
Dave Halter d1be92ac80 Cache used names definition finding per evaluator 2018-12-14 09:20:42 +01:00
Dave Halter b6cb1fb72d Rewrite the typeshed algorithm of matching actual and stub classes 2018-12-13 09:32:57 +01:00
Dave Halter 26b49f8d01 Make the profile_output script usable for Python 2 as well 2018-12-11 00:11:49 +01:00
Dave Halter c87398a8c2 Remove unused code 2018-12-10 21:34:47 +01:00
Dave Halter 3940fd8eff Restructure eval_annotation so that it's more understandable 2018-12-09 20:48:18 +01:00
Dave Halter aa4846bff6 If the stub module is not a package but the actual module is, it should not fail the import 2018-12-09 13:39:40 +01:00
Dave Halter 3ec194093d Fix _sre issues 2018-12-09 12:54:39 +01:00
Dave Halter f7442032b2 Fix version differences for re.sub 2018-12-09 12:50:01 +01:00
Dave Halter 2c5e2609f3 Overloaded functions now return values even if nothing matches 2018-12-09 12:43:55 +01:00
Dave Halter ae1f5fa511 Fix namedtuples and reactivate tests for Python 2 2018-12-09 12:41:58 +01:00
Dave Halter 0c37256050 Change some tests in Python2 2018-12-08 23:55:08 +01:00
Dave Halter decb5046ea Some Python 2.7 fixes 2018-12-07 08:58:17 +01:00
Dave Halter b2824a3547 Remove a test, because it's different in Python 2/3 and covered by typeshed 2018-12-06 19:07:06 +01:00
Dave Halter 74c965b55c Fix a return type for py__iter__() 2018-12-06 18:54:51 +01:00
Dave Halter 83ba02d0fb Fix remaining issues for Python 3.4 2018-12-06 18:19:30 +01:00
Dave Halter 63bd762f91 Fix a colorama debug highlighting issue 2018-12-06 01:12:48 +01:00
Dave Halter cc9641f8c1 Fixed an issue about compiled bound methods 2018-12-06 01:03:17 +01:00
Dave Halter c446bcf885 Fix Python 3.5 issues 2018-12-06 00:59:56 +01:00
Dave Halter d9e711ab11 Fix remaining Python 3.7 issues to get the tests to pass 2018-12-06 00:35:09 +01:00
Dave Halter 3260867918 Move the stdlib namedtuple template of 3.6 to Jedi. 2018-12-06 00:34:52 +01:00
Dave Halter d90011c002 Cleanup a few issues with the latest module refactoring 2018-12-05 22:55:56 +01:00
Dave Halter 2406c8374f StubModuleContext is now a wrapped context 2018-12-05 21:33:23 +01:00
Dave Halter 3d4f241129 Cache Script._get_module 2018-12-05 18:18:26 +01:00
Dave Halter 9766abf1c5 Fix a small caching issue 2018-12-05 18:17:33 +01:00
Dave Halter feefde400e Fix mro for typing classes 2018-12-05 00:16:06 +01:00
Dave Halter 15ae767a79 Fix mro detail 2018-12-05 00:07:21 +01:00
Dave Halter b293e8e9e1 Reintroduce CompiledStubName, because we actually need it for positions 2018-12-04 19:25:01 +01:00
Dave Halter bb0bf41cab Use ClassMixin the right way in typing 2018-12-04 00:36:53 +01:00
Dave Halter b2c0597a7d Fix names for typing classes 2018-12-03 00:56:19 +01:00
Dave Halter 3c3ad7b240 Add a generator cache for py__mro__ 2018-12-03 00:51:45 +01:00
Dave Halter a7c21eff4b Move py__mro__ to ClassMixin 2018-12-01 15:24:21 +01:00
Dave Halter 6b86ad9083 Move py__mro__ calls to direct calls, because it's defined on ClassMixin 2018-12-01 15:17:22 +01:00
Dave Halter 2b268435c4 Make some profile output better 2018-12-01 13:35:29 +01:00
Dave Halter 07d48df314 Make it possible to have higher precision with pstats displayed 2018-12-01 11:45:09 +01:00
Dave Halter a07b062752 Merge StubName and CompiledNameWithStub 2018-11-30 23:36:30 +01:00
Dave Halter dd1e53b498 Small refactoring 2018-11-28 22:48:33 +01:00
Dave Halter 2eb5e9b42d Improve the profiling script 2018-11-28 22:48:13 +01:00
Dave Halter 5e6e4356fc Start using gather_annotation_classes 2018-11-27 01:17:12 +01:00
Dave Halter 5bb88ca703 Make it possible to gather annotation classes for Union and Optional 2018-11-27 01:14:15 +01:00
Dave Halter eb27c64c71 Make os.path import issues clearer 2018-11-25 19:25:21 +01:00
Dave Halter 644e292fa7 Get rid of is_super_class and do some different things in analysis 2018-11-24 14:09:14 +01:00
Dave Halter 021d1bc568 py__iter__ now takes a contextualized_node argument and raises the analysis errors itself 2018-11-23 18:22:38 +01:00
Dave Halter 12a0357f6b Remove class_context from BoundMethod, it's not really needed anymore 2018-11-23 00:11:39 +01:00
Dave Halter 55982d699b Use AnnotatedSubClass for Async classes like everywhere else as stubs 2018-11-23 00:03:32 +01:00
Dave Halter 1948f23fb3 Fix some issues around stub methods 2018-11-21 23:47:40 +01:00
Dave Halter cb3cd3022d get_signatures should automatically use the stubs if possible 2018-11-19 09:58:35 +01:00
Dave Halter d2c0b13a02 Fix some small small issues around the latest commits 2018-11-18 23:53:56 +01:00
Dave Halter cf6cae728a Some issues with inheritance 2018-11-18 22:29:52 +01:00
Dave Halter 8b039287c8 Try to use a CompiledStubClass to wrap functions inside classes 2018-11-18 17:43:46 +01:00
Dave Halter 75203c55f8 Make some things clearer around CompiledStubs 2018-11-16 09:49:46 +01:00
Dave Halter aeeb4880b1 Use the right context (stub) to check if we should use a CompiledStubClass or not 2018-11-14 22:59:49 +01:00
Dave Halter d5d7679120 Fix a few of the issues with compiled classes and typeshed and docs 2018-11-14 19:19:56 +01:00
Dave Halter 986c69abea Simplify some more call signature things 2018-11-11 22:44:32 +01:00
Dave Halter a73c7092bb Change signature a little bit 2018-11-11 22:36:05 +01:00
Dave Halter 3ecae30b5c Delete old get_param_names code in API. 2018-11-11 19:45:00 +01:00
Dave Halter 6dc53c3887 Add at least partial support for signatures for builtins 2018-11-11 19:32:29 +01:00
Dave Halter 4fbede7445 Rework some call signature issues 2018-11-11 17:01:12 +01:00
Dave Halter c29cde6784 Refactor the call signatures to avoid getting multiple call signatures for some overloaded objects 2018-11-07 23:58:25 +01:00
Dave Halter f610af36c6 Don't use get_function_slot_names in classes anymore 2018-11-07 09:49:59 +01:00
Dave Halter d8090cfa0a Start implementing get_signatures 2018-11-07 01:20:39 +01:00