Dave Halter
|
6220b20659
|
"Document" stubs for develops
|
2020-03-16 00:19:08 +01:00 |
|
Dave Halter
|
10bc578bfe
|
Merge branch 'master' into refactor
|
2020-03-13 23:53:09 +01:00 |
|
Dave Halter
|
d574162da3
|
Fix namedtuple docstring/signature issues, fixes #1506
|
2020-03-10 20:07:10 +01:00 |
|
Dave Halter
|
0aa1ef6639
|
Move an import to the top
|
2020-03-10 09:36:45 +01:00 |
|
Dave Halter
|
33c61b8708
|
Make a method public
|
2020-03-10 09:35:03 +01:00 |
|
Dave Halter
|
cf3d83ee4f
|
Don't mix up caches for stubs and python files
|
2020-03-09 17:48:36 +01:00 |
|
Dave Halter
|
656324f686
|
Disable some more tests for Python 2
|
2020-03-01 13:30:41 +01:00 |
|
Dave Halter
|
609737322d
|
TypedDict checking should be at a later point
|
2020-03-01 02:34:38 +01:00 |
|
Sam Roeca
|
9d2083fa08
|
Remove argument to filter.values()
Given 87161df2, values(from_instance=False) doesn't produce completions
anymore. Therefore, we remove from_instance as an argument.
|
2020-02-07 13:38:52 -05:00 |
|
Sam Roeca
|
6a9745b42b
|
Get basic completions working with TypedDict
|
2020-02-07 13:24:00 -05:00 |
|
Dave Halter
|
87161df2f0
|
Make sure that typeddict py__getitem__ works
|
2020-02-07 16:45:03 +01:00 |
|
Dave Halter
|
7ef07b576f
|
Merge branch 'master' into typeddict
|
2020-02-07 04:03:27 +01:00 |
|
Dave Halter
|
7a55484b79
|
Fix a test issue
|
2020-02-04 23:56:01 +01:00 |
|
Dave Halter
|
a49c757b8a
|
Make Ellipsis without list in Callable work, fixes #1475
|
2020-02-03 09:25:46 +01:00 |
|
Dave Halter
|
eee919174d
|
Stubs should not become stubs again in the conversion function, fixes #1475
|
2020-02-03 00:58:54 +01:00 |
|
Dave Halter
|
e3c4b5b77e
|
Make sure param hints are working for functions
|
2020-02-02 18:42:01 +01:00 |
|
Dave Halter
|
4c7179bc87
|
Generate type hints, fixes #987
|
2020-02-02 16:55:10 +01:00 |
|
Dave Halter
|
8eb980db73
|
Create the basics to work with TypedDict in the future
|
2020-01-26 19:25:23 +01:00 |
|
Dave Halter
|
5c68304bec
|
Raise a proper exception instead of assert in case only_stubs and prefer_stubs are given
|
2020-01-22 10:00:10 +01:00 |
|
Dave Halter
|
8bcd1f5fd9
|
Fix stub conversion
|
2020-01-14 01:08:26 +01:00 |
|
Dave Halter
|
095f1295af
|
Avoid a bug that a compiler might have found, fixes #1469
|
2020-01-11 21:35:39 +01:00 |
|
Dave Halter
|
3ba68b5bc6
|
Properly convert compiled values to generic classes
|
2020-01-10 15:09:16 +01:00 |
|
Dave Halter
|
a17b56f260
|
Use one single way to convert stubs to Python, see #1466
|
2020-01-07 10:02:31 +01:00 |
|
Dave Halter
|
9b9cacfbf9
|
Make sure to use _stub_to_python_value_set for all conversions, see #1466
|
2020-01-07 01:27:50 +01:00 |
|
Dave Halter
|
ea0972d7ac
|
Make sure to check the module cache before loading a module (again)
This hopefully results in some performance improvements (maybe numpy?).
|
2020-01-05 18:28:34 +01:00 |
|
Dave Halter
|
829ee0e6b0
|
Remove unused code
|
2020-01-01 03:27:17 +01:00 |
|
Dave Halter
|
8611fcf8ea
|
Fix some tests
|
2019-12-27 11:59:40 +01:00 |
|
Dave Halter
|
4161bfc7f2
|
Avoid some duplication of code
|
2019-12-22 01:24:50 +01:00 |
|
Dave Halter
|
fcede44c2a
|
Move the docstring checking code to the names
|
2019-12-21 20:06:37 +01:00 |
|
Dave Halter
|
e56d4fde98
|
Improved Generic subclass matching
|
2019-12-20 01:33:41 +01:00 |
|
Dave Halter
|
51e2e90dce
|
Make sure overload checks work for TypeAlias, see #1416
|
2019-12-20 01:33:41 +01:00 |
|
Dave Halter
|
38eb2c9ba3
|
Make sure that the definition order in stubs are ignored
|
2019-12-15 18:41:41 +01:00 |
|
Dave Halter
|
9d35adda02
|
Make sure that a goto on stubs even without the implementation is possible
|
2019-12-15 18:00:09 +01:00 |
|
Dave Halter
|
7bdedb40e3
|
Fix: Stubs in typeshed weren't loaded properly sometimes, fixes #1434
|
2019-12-14 21:33:00 +01:00 |
|
Dave Halter
|
e656a5f18f
|
Make it possible to infer Callable TypeVars, fixes #1449
|
2019-12-12 23:46:55 +01:00 |
|
Dave Halter
|
536a77551b
|
Account for sys path potentially not being all unicode in typeshed, fixes #1456
This is a bit stupid, but don't care too much, it will get removed soon, when
Python 2 support is going to get removed.
|
2019-12-11 00:30:37 +01:00 |
|
Dave Halter
|
28ecc2709a
|
Don't use globals anymore
|
2019-12-09 00:15:21 +01:00 |
|
Dave Halter
|
33224ae7e1
|
Remove a duplicate method
|
2019-12-09 00:11:51 +01:00 |
|
Dave Halter
|
d9260bf78b
|
More docstrings
|
2019-12-09 00:07:07 +01:00 |
|
Dave Halter
|
a51dc54759
|
A bit better documentation
|
2019-12-09 00:02:44 +01:00 |
|
Dave Halter
|
5acbb06315
|
Refactor so typing uses BaseTypingValueWithGenerics
This makes it finally possible to use type vars with Callable and some other classes.
Fixes #1413
|
2019-12-08 23:50:57 +01:00 |
|
Dave Halter
|
7319f8bf2c
|
Make some more classes private for inference.gradual.base
|
2019-12-08 23:15:31 +01:00 |
|
Dave Halter
|
d9ddaa31ae
|
Use _create_instance_with_generics
|
2019-12-08 23:09:55 +01:00 |
|
Dave Halter
|
5874b0bd69
|
The generics manager is now part of DefineGenericBase
|
2019-12-08 23:03:15 +01:00 |
|
Dave Halter
|
9eef771ec5
|
Remove get_index_and_execute and use something else
|
2019-12-08 22:55:52 +01:00 |
|
Dave Halter
|
9e6c53151b
|
_InstanceWrapper to _GenericInstanceWrapper
|
2019-12-08 22:47:07 +01:00 |
|
Dave Halter
|
84d10657a3
|
Another rename for readability
|
2019-12-08 22:46:35 +01:00 |
|
Dave Halter
|
5c4b3da45d
|
Merge GenericClass and _AbstractAnnotatedClass
|
2019-12-08 22:45:30 +01:00 |
|
Dave Halter
|
ad92882c48
|
Use the generics manager for all the typing classes
|
2019-12-08 22:42:01 +01:00 |
|
Dave Halter
|
8213d183fb
|
Start using generic managers, for #1413
|
2019-12-08 21:56:30 +01:00 |
|