Commit Graph

6140 Commits

Author SHA1 Message Date
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