Commit Graph

44 Commits

Author SHA1 Message Date
Dave Halter
3b2dddd1d3 Make sure classmethod param completion works better for the first param 2019-12-25 03:39:37 +01:00
Dave Halter
110d89724e Make sure staticmethod params are (mostly) inferred correctly, fixes #735 2019-12-24 21:32:12 +01:00
Dave Halter
7639bc2da9 Upgrade typeshed, fixes #1084 2019-12-14 11:38:37 +01:00
Dave Halter
e656a5f18f Make it possible to infer Callable TypeVars, fixes #1449 2019-12-12 23:46:55 +01:00
Dave Halter
e3d2bce7ff Reenable some tests 2019-08-25 02:37:52 +02:00
Dave Halter
97526aa320 Add tests to show that #516 is not working, yet 2019-08-02 22:31:26 +02:00
Dave Halter
eeea88046e First step in working with metaclasses in plugins, see #1090. 2019-07-18 11:20:28 +02:00
Jean Cavallo
a3afdc0ece Ignore super calls when super class cannot be inferred 2019-06-12 09:51:08 +02:00
Dave Halter
f7442032b2 Fix version differences for re.sub 2018-12-09 12:50:01 +01:00
Dave Halter
26329de5a5 Underscored objects in stubs are not public and should never be listed 2018-11-03 14:36:46 +01:00
Dave Halter
52aa5b6764 The builtins/typing module are not causing recursions. They are using annotations to give results. 2018-10-31 09:58:20 +01:00
Dave Halter
2f3fb54ebb Add another test for __itemsize__ 2018-10-23 23:33:43 +02:00
Dave Halter
a45d86c2a4 The sqlite3 test was not correct and depends if there is a RowFactory present 2018-10-23 09:46:09 +02:00
Dave Halter
380f0ac404 Fix itemgetter for tuples 2018-10-05 10:51:52 +02:00
Dave Halter
f35c233289 Fix some small issues with resulting types 2018-09-28 18:22:57 +02:00
Dave Halter
4bb7a595e8 Fix some issues with signature matching 2018-09-25 23:05:23 +02:00
Dave Halter
1a29552bff open returns str and bytes now with typeshed 2018-09-10 00:56:50 +02:00
Dave Halter
38176ae7e6 Implement itemgetter partially 2018-09-04 00:01:55 +02:00
Dave Halter
39f1dfc85e WIP of namedtuple/itemgetter/property 2018-09-03 09:50:51 +02:00
Dave Halter
0edc63ca8b Fix an issue in the tests that typeshed avoids 2018-09-03 01:41:55 +02:00
Dave Halter
5302032b63 The sub typeshed definitions are wrong at the moment 2018-09-03 01:04:41 +02:00
Dave Halter
fe0e41e9d6 Fix some more dict.get/dict.values stuff 2018-02-02 18:24:18 +01:00
Dave Halter
8028138e8c Implememnt dict.values for FakeDict to avoid a recursion error. Fixes #1014. 2018-02-02 09:34:40 +01:00
Dave Halter
febe65f737 Disable predefined name analysis (if stmts) for all non-analysis tasks
It's really buggy and caused quite a few issues
2018-01-29 00:56:29 +01:00
Dave Halter
c7dbf95344 Fix recursion issues.
Completely refactored the recursion checker and changed some settings.

Fixes #861.
2017-09-17 21:54:09 +02:00
Dave Halter
8fcb468539 Jedi was able to go crazy and loop endlessly in certain if/self assignment combinations.
Here we limit type inferance per tree scope. I'm still not sure this is the way
to go, but it looks okay for now and we can still go anther way in the future.
Tests are there.

Fixes #929.
2017-09-17 02:04:42 +02:00
Dave Halter
4c2d1ea7e7 Understand context managers correctly
Fixes #812.
2017-09-13 11:00:34 +02:00
Dave Halter
c25a4a00df readlines should be completable.
Fixes #921.
2017-09-10 01:54:50 +02:00
Dave Halter
68ff520cf8 Limit dynamic param searches to not go crazy in a lot of occasions. Refs #574. 2016-07-17 19:49:43 +02:00
Dave Halter
75c1ebc2fe Add a max_dynamic_params_depth setting to limit recusive searching for those params. It shouldn't be too crazy. 2016-07-17 13:59:19 +02:00
Dave Halter
7141158484 Merge master into linter. 2015-12-15 12:28:38 +01:00
Dave Halter
f2cc320a61 Tests and implementation for type(some class). (Which returns type) 2015-07-01 14:58:37 +02:00
Dave Halter
3ac8f02841 Type tests and implementation for functions. 2015-07-01 14:54:23 +02:00
Dave Halter
e355ab201e Tests and implementation for type on lambda and function objects. 2015-07-01 14:40:57 +02:00
Dave Halter
e222a30227 Implement the type builtin better and with a lot more tests. 2015-07-01 14:27:49 +02:00
Sid Shanker
20061fcf2e Added in support for autocompleting enumerate.
Resolves #554
2015-05-04 00:19:14 -07:00
Dave Halter
425290aa8f Fix an issue with partial keyword inputs. 2014-08-14 12:25:00 +02:00
Dave Halter
fb1dba269a re-enable the interpretation of the None keyword 2014-08-12 14:38:56 +02:00
Dave Halter
d09279e0ad change tests that provided wrong instance information 2014-07-31 15:16:24 +02:00
Danilo Bargen
efebb2d6d0 Added tests for random.choice 2014-07-26 17:40:08 +02:00
Dave Halter
5b7c869323 types also add to completions, also for compiled objects. removed a few lines of code that complicated the process as well. 2014-06-28 12:09:43 +02:00
Dave Halter
7d73e571bb json.load[s] shouldn't return any results. fixed by overwriting the method 2014-06-27 11:56:40 +02:00
Dave Halter
cf1fd691da custom copy.copy and copy.deepcopy implementations to not confuse autocompletion (just return the first param) 2014-06-27 11:49:26 +02:00
Dave Halter
8cd7f9a288 std -> stdlib 2014-06-27 11:24:23 +02:00