Commit Graph
100 Commits
Author SHA1 Message Date
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 4a5cb389b7 Revert "Remove a function that is no longer needed"
This reverts commit 3581ce7059.
2018-10-30 23:35:02 +01:00
Dave Halter f2d67f4a5d Make version_info understandable so it can be used in for typeshed 2018-10-30 23:31:57 +01:00
Dave Halter 3581ce7059 Remove a function that is no longer needed 2018-10-30 22:01:09 +01:00
Dave Halter 0a67b387c6 Fix most issues with dynamic arrays 2018-10-29 21:05:12 +01:00
Dave Halter a352fc8595 Fix an issue with recursion for arrays 2018-10-26 00:26:23 +02:00
Dave Halter a93dff2673 Fix star_expr unpacking issues. For now star_expr is not supported 2018-10-26 00:17:28 +02:00
Dave Halter 7856d27724 Clarify something about contexts 2018-10-24 00:45:06 +02:00
Dave Halter da3ffd8bd0 Typo 2018-10-24 00:41:17 +02:00
Dave Halter 742179ee38 Add __class__, because of how it's represented as a property 2018-10-24 00:39:11 +02:00
Dave Halter d5d9e51f66 Move py__call__to FunctionMixin 2018-10-24 00:33:07 +02:00
Dave Halter 19096f83db Hide a warning in some cases 2018-10-24 00:11:07 +02:00
Dave Halter 2f3fb54ebb Add another test for __itemsize__ 2018-10-23 23:33:43 +02:00
Dave Halter e12f9d5a1c Fix a small oversight about type 2018-10-23 23:31:55 +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 be58b627b2 Upgrade typeshed 2018-10-21 00:35:28 +02:00
Dave Halter b008a525cb Fix some more things to get async working 2018-10-21 00:35:07 +02:00
Dave Halter 228440c03f Better wrapping of BoundMethod 2018-10-18 19:18:20 +02:00
Dave Halter dddd302980 Fix issues with listing type vars 2018-10-10 02:05:23 +02:00
Dave Halter 5d44e1991f Create better class filters 2018-10-10 01:45:10 +02:00
Dave Halter 55f0966a9a StubClassContext is now also a ContextWrapper 2018-10-09 22:53:33 +02:00
Dave Halter 7daa26ce81 Move some functions in the base context to make ContextWrapper more usable 2018-10-09 10:00:17 +02:00
Dave Halter 8dca2b81e4 Start using ContextWrapper for annotated classes 2018-10-09 09:58:19 +02:00
Dave Halter b14b3d1012 Better debugging 2018-10-06 16:42:02 +02:00
Dave Halter 43c04a71a8 The generics of a class of anonymous instances should never be inferred 2018-10-05 19:06:41 +02:00
Dave Halter 9313fb9021 Avoid an issue with dict comprehensions 2018-10-05 19:03:32 +02:00
Dave Halter 380f0ac404 Fix itemgetter for tuples 2018-10-05 10:51:52 +02:00
Dave Halter 1b8c87215d Fix an _sqlite3 issue temporarily 2018-10-05 10:51:39 +02:00
Dave Halter 65340e6e24 Some more work on the filter merging 2018-10-05 01:57:34 +02:00
Dave Halter f96a14e7f4 Start rewriting the StubFilter 2018-10-03 23:01:56 +02:00
Dave Halter ad83f5419a Merge branch 'master' into typeshed 2018-10-02 19:07:59 +02:00
Dave Halter bd1010bbd2 Create a new 0.13.1 release 2018-10-02 19:07:35 +02:00
Dave Halter 23b3327b1d Fixed completions of global vars and tensorflow slowness, fixes #1228, #1116 2018-10-02 15:28:51 +02:00
Dave Halter 075577d50c The changelog date was wrong 2018-10-02 15:25:31 +02:00
Dave Halter 96b57f46cb Release notes for 0.13.0 2018-10-02 01:14:28 +02:00
Dave Halter c24eb4bd67 Fix tensorflow issues with a few hacks (temporary), fixes #1195 2018-10-02 00:52:11 +02:00
Dave Halter 862f611829 If the VIRTUAL_ENV variable changes, need to reload the default environment, fixes #1201, #1200 2018-09-30 19:07:48 +02:00
Dave Halter f9cbc65f2d Return SameEnvironment as a default, fixes #1226, #1196 2018-09-30 14:07:37 +02:00
Dave Halter e1f9624bd4 Document that using the REPL autocompletion is only available on Linux/Mac, fixes #1184 2018-09-30 13:36:05 +02:00
Dave Halter 6a2a2a9fa1 Fix an issue with f-strings, fixes #1224 2018-09-30 13:26:54 +02:00
Dave Halter 4545d91929 Ignore some errors that are happening when the Python process ends and its subprocesses are cleaned up 2018-09-30 13:26:26 +02:00
Dave Halter ba5abf4700 Change some tests slightly 2018-09-30 00:35:45 +02:00
Dave Halter 78f0cc9e8a Better indentation when running run.py 2018-09-29 01:19:36 +02:00
Dave Halter d6bdb206c8 Remove the old typing module support in favor of the new one 2018-09-29 01:09:09 +02:00
Dave Halter 6539031d5a Remove CompiledStubClassContext, it's not used currently 2018-09-29 00:59:13 +02:00
Dave Halter f35c233289 Fix some small issues with resulting types 2018-09-28 18:22:57 +02:00
Dave Halter fbd72179a1 Define generics from a different function 2018-09-28 18:16:24 +02:00
Dave Halter af5d9d804e A better way to define generics 2018-09-28 09:25:12 +02:00
Dave Halter 8e8271cf54 Refactor dict/set/list/tuple literal generic inferring 2018-09-27 00:01:35 +02:00
Dave Halter b5b0214c3c Fix forward reference resolving 2018-09-26 09:18:04 +02:00
Dave Halter 4bb7a595e8 Fix some issues with signature matching 2018-09-25 23:05:23 +02:00
Dave Halter 7d3eba1d8d py__bool__ should be called on CompiledObject in CompiledValue 2018-09-25 08:58:01 +02:00
Dave Halter f3b2d49880 Fix annotation variables 2018-09-25 00:33:44 +02:00
Dave Halter bdff4e21a8 Fix classmethod issues 2018-09-25 00:19:55 +02:00
Dave Halter f1b45bed96 Fix some property issues 2018-09-24 22:22:50 +02:00
Dave Halter fe41c29b29 Implement iter, it's probably necessary 2018-09-24 21:10:54 +02:00
Dave Halter a06ca5d035 Fix generator return issues 2018-09-24 20:59:43 +02:00
Dave Halter 75a02a13d9 Use ContextSet closer to they way how Python's set works 2018-09-24 20:30:57 +02:00
Dave Halter 8fad33b125 Fix some async issues 2018-09-24 09:45:10 +02:00
Dave Halter bbc6e830e2 Make it possible to use ContextSet with an iterable parameter 2018-09-24 09:43:35 +02:00
Dave Halter ef9d0421fa Merge remote-tracking branch 'origin/master' into typeshed 2018-09-24 00:16:13 +02:00
Dave Halter cc493866cd Try to introduce is_instance and is_function 2018-09-24 00:15:16 +02:00
Dave Halter 2ec4d1e426 The BUILTINS special object is no longer used 2018-09-23 23:24:24 +02:00
Dave Halter de311b2f2d Replace the Generator class for now 2018-09-23 23:22:33 +02:00
Dave Halter c2b78b175c Use async generator/async functions from typeshed 2018-09-23 22:57:08 +02:00
Dave Halter ff6516d1d7 Replace AsyncGenerator 2018-09-23 15:41:23 +02:00
Dave Halter f435f23570 Small changes so some type var inferring works better
However this change is a bit controversial, because it involves some strange class matching that we might need to revisit
2018-09-23 00:41:32 +02:00
Dave Halter 994e7d1910 Fix an issue with type vars 2018-09-22 21:00:42 +02:00
Dave Halter 389d4e3d9c Fix inferring dict.values() 2018-09-21 01:09:13 +02:00
Dave Halter 43ffcb0802 Also return the issues when retruning the executed params 2018-09-21 00:20:24 +02:00
Dave Halter 5fda4a2f8b Start putting the signature matching onto the ExecutedParam class 2018-09-20 21:14:07 +02:00
Dave Halter 9807a7f038 Infer dict.get() in a fancy way 2018-09-19 01:50:35 +02:00
Dave Halter 57fa5f5bd9 Fix some signature matching for methods 2018-09-18 23:48:26 +02:00
Dave Halter 1b11162132 Quite a few changes to prepare arrays 2018-09-18 00:17:51 +02:00
Dave Halter 75ab83da63 Make it possible to have a string_name attribute on instance params 2018-09-17 17:44:23 +02:00
Dave Halter cc3b08fd1b More fixes, because of CompiledObject modifications 2018-09-17 02:40:34 +02:00
Dave Halter eb9a852443 Remove fakes, RIP 2018-09-17 02:25:01 +02:00
Dave Halter 93d50e0f0c Get more things working 2018-09-17 02:16:16 +02:00
Dave Halter 62df944c47 Fix a few issues with the newly defined CompiledValue 2018-09-17 02:10:27 +02:00
Dave Halter d07d1a78d3 Use CompiledValue for simple values 2018-09-17 01:05:36 +02:00
Dave Halter 1107967f76 Fix some small issues 2018-09-16 14:31:55 +02:00
Dave Halter 5d9f29743c Get iter() working and a lot of other typeshed reverse engineering of type vars 2018-09-16 02:19:29 +02:00
Dave Halter 6807e3b6d5 Use py__name__ instead of var_name for type vars 2018-09-15 11:43:23 +02:00
Dave Halter 1244eb9998 Better debug statements 2018-09-13 22:47:12 +02:00
Dave Halter 9ece2844f4 Better is_same_class function 2018-09-13 22:41:30 +02:00
Dave Halter a646d930c8 Use some solid caching for typing 2018-09-12 22:58:35 +02:00
Dave Halter 6f8385143f Use a frozenset in context sets and make it comparable/hashable 2018-09-12 21:44:34 +02:00
Dave Halter 1a29552bff open returns str and bytes now with typeshed 2018-09-10 00:56:50 +02:00
Dave Halter 190a531daa Fix the reversed object 2018-09-10 00:30:24 +02:00
Dave Halter 9722860417 Don't use ValueError, it could be thrown somewhere else 2018-09-09 17:04:03 +02:00
Dave Halter 7fff203360 Fix the next builtin 2018-09-09 16:20:23 +02:00
Dave Halter bd3bd2e53b Fix type completions on classes 2018-09-09 15:51:42 +02:00
Dave Halter 6abd96a398 Try to introduce a few new classes to better deal with compiled objects 2018-09-08 17:48:00 +02:00
Dave Halter eac8cfe63d Fix mro 2018-09-08 17:04:07 +02:00
Dave Halter 928e80c9e9 Fix search_global for builtins 2018-09-08 16:58:18 +02:00
Dave Halter 4a69ab3bf8 Cleanup StubParserTreeFilter.values 2018-09-08 14:13:14 +02:00
Dave Halter 91a18ec63c Try to re-implement reversed 2018-09-07 23:00:32 +02:00
Dave Halter 9e7879d43f Move py__mro__ to a separate function 2018-09-07 00:46:54 +02:00
Dave Halter 99c08fd205 Flows should be respected even in stubs 2018-09-07 00:25:08 +02:00
Dave Halter 82af902cc8 Actually use the previously written builtins_next function 2018-09-06 19:24:48 +02:00