Dave Halter
|
7586900fd9
|
Merge branch 'master' into django
|
2020-06-12 20:04:28 +02:00 |
|
Dave Halter
|
c4de9ae2d3
|
Use a customized django-stubs
|
2020-06-12 19:30:49 +02:00 |
|
Dave Halter
|
3a0a484fcb
|
Try to get get the tests for Python 3.9 passing, fixes #1608
|
2020-06-10 09:54:32 +02:00 |
|
Dave Halter
|
df7dd026d2
|
Make it possible to use inheritance on generics without always specifying type vars, see also discussion in #1593
|
2020-06-10 09:54:32 +02:00 |
|
Dave Halter
|
a2108de2c0
|
Use py__get__ for Django Model.objects
This includes the fix in https://github.com/typeddjango/django-stubs/pull/394
|
2020-06-09 23:26:43 +02:00 |
|
Dave Halter
|
6d0d75c7d9
|
@publish_method should provide arguments
|
2020-06-09 22:37:50 +02:00 |
|
Dave Halter
|
d4f0424ddc
|
Move py__getitem__ from Class to ClassMixin
|
2020-06-08 00:58:38 +02:00 |
|
Dave Halter
|
cd6113c2c3
|
Move with_generics and define_generics to ClassMixin
|
2020-06-08 00:11:45 +02:00 |
|
Dave Halter
|
c9a21adc5f
|
Make sure py__get__ is applied properly for Django metaclasses
|
2020-06-07 15:01:12 +02:00 |
|
Dave Halter
|
9adcf3d233
|
Make sure meta class filters can distinguish between classes and instances
|
2020-06-07 14:54:26 +02:00 |
|
Dave Halter
|
34cc8e9ad7
|
Properly handle __get__ in properties/partials
|
2020-06-07 14:18:45 +02:00 |
|
Dave Halter
|
105c097fea
|
Merge branch 'django-custom-object-manager' of https://github.com/PeterJCLaw/jedi into django
|
2020-06-06 01:24:24 +02:00 |
|
Dave Halter
|
574b790296
|
Make it possible to use inheritance on generics without always specifying type vars, see also discussion in #1593
|
2020-06-06 01:23:14 +02:00 |
|
Dave Halter
|
3870253b56
|
Make sure that scopes can only be exact values, see #1590
|
2020-06-05 23:04:39 +02:00 |
|
Dave Halter
|
21a380f7cb
|
Merge pull request #1590 from muffinmad/references-scope
Get references in the current module only
|
2020-06-05 19:21:34 +02:00 |
|
Dave Halter
|
24236be3ce
|
Fix a small issue with doctest completions, fixes #1585
|
2020-06-05 13:35:36 +02:00 |
|
Dave Halter
|
9980f760b1
|
Merge pull request #1601 from yuan-xy/patch_3
add test case to fix code example in doc
|
2020-05-31 11:14:58 +02:00 |
|
Dave Halter
|
8239328e42
|
Merge pull request #1599 from isidentical/py38-plus-setuppy
Upgrade setup.py's version parsing for 3.8+
|
2020-05-28 21:18:51 +02:00 |
|
Dave Halter
|
2d672d2f28
|
Merge pull request #1595 from PeterJCLaw/operator-not-in
Explicitly handle `a not in b` operator comparison
|
2020-05-23 14:48:40 +02:00 |
|
Dave Halter
|
64d131060c
|
Merge pull request #1586 from PeterJCLaw/django-more-fields
Support more Django model fields
|
2020-05-19 00:39:27 +02:00 |
|
Dave Halter
|
855fb5a936
|
Fix potential AttributeError in get_defintion_start_position/get_defintion_end_position, see #1584
|
2020-05-18 19:21:04 +02:00 |
|
Dave Halter
|
8fdf16b316
|
Fix an error of get_definition_end_pos, see #1584
|
2020-05-18 01:44:51 +02:00 |
|
Dave Halter
|
fa6194c0a9
|
Refactor test_definition_start_end_position to use parametrize
|
2020-05-18 01:41:07 +02:00 |
|
Dave Halter
|
2d17b81313
|
definition_end_position -> get_definition_end_position, same for start, see #1584
|
2020-05-18 01:18:22 +02:00 |
|
Dave Halter
|
cb1730f628
|
Merge pull request #1584 from pappasam/get_definition_position
Add BaseName.definition_[start,end]_position
|
2020-05-18 01:14:00 +02:00 |
|
Dave Halter
|
d16355fcf2
|
Fix tests in Python 2
|
2020-05-16 17:47:33 +02:00 |
|
Dave Halter
|
cd3d40a3b8
|
Fix a small issue
|
2020-05-16 15:42:15 +02:00 |
|
Dave Halter
|
b3fc10a6e4
|
Magic methods fixes for reverse methods
|
2020-05-16 15:39:48 +02:00 |
|
Dave Halter
|
09dbbc6361
|
lists and tuples should not be added
|
2020-05-16 15:10:47 +02:00 |
|
Dave Halter
|
f5ad561c51
|
Use __truediv__ instead of __div__
This ignores Python 2, but that shouldn't be an issue, since we are going to drop it anyway.
|
2020-05-16 14:57:57 +02:00 |
|
Dave Halter
|
0db50b521d
|
Fix an issue with Tuple generics
|
2020-05-16 14:55:59 +02:00 |
|
Dave Halter
|
9942a3d44c
|
A few class renames
|
2020-05-16 14:35:15 +02:00 |
|
Dave Halter
|
47637c147c
|
Better debugging
|
2020-05-16 14:31:31 +02:00 |
|
Dave Halter
|
2fb072532a
|
Skip another non-important Python 2 test that fails on Windows
|
2020-05-16 01:25:15 +02:00 |
|
Dave Halter
|
70aa7fc917
|
Fix a namespace issue when getting references
|
2020-05-16 01:05:39 +02:00 |
|
Dave Halter
|
384b2ad014
|
Fix an about dict completions
|
2020-05-16 00:46:46 +02:00 |
|
Dave Halter
|
f2975f9a05
|
Fix a None issue
|
2020-05-16 00:27:14 +02:00 |
|
Dave Halter
|
41c146a6f3
|
Implement magic method return values, fixes #1577
|
2020-05-15 23:53:44 +02:00 |
|
Dave Halter
|
be594f1498
|
Remove an unused cache method
|
2020-05-15 23:53:44 +02:00 |
|
Dave Halter
|
99eba4e0eb
|
Undefined api types should not return a random value
|
2020-05-15 23:53:44 +02:00 |
|
Dave Halter
|
d4aa583e16
|
Fix inline case where a name was removed without the code being used, fixes #1582
|
2020-05-14 23:08:37 +02:00 |
|
Dave Halter
|
381fbeda6a
|
Make the diff nicer if there is no ending newline, fixes #1581
|
2020-05-14 00:20:20 +02:00 |
|
Dave Halter
|
3104443212
|
Merge pull request #1579 from muffinmad/pseudotreenameclass
Return 'class' as _PseudoTreeNameClass.type (fix #1578)
|
2020-05-13 18:59:05 +02:00 |
|
Dave Halter
|
0caee73975
|
Merge pull request #1572 from davidhalter/classvar
Remove is_class_value from infer_type_vars
|
2020-05-12 23:56:03 +02:00 |
|
Dave Halter
|
7f25e28d89
|
Fix tuple issue in 3.6
|
2020-05-12 23:33:06 +02:00 |
|
Dave Halter
|
be7a1346ec
|
Fix #1573 again; a tree_node can be None
|
2020-05-10 13:29:58 +02:00 |
|
Dave Halter
|
6dbc5e783e
|
Fix argument clinic unpacking, remove dynamic bullshit
|
2020-05-10 13:27:20 +02:00 |
|
Dave Halter
|
bf4ec2282f
|
Fix getattr completions on very weird cases, fixes #1573
|
2020-05-10 11:37:58 +02:00 |
|
Dave Halter
|
e6e43413ff
|
Any -> AnyClass
|
2020-05-10 03:17:52 +02:00 |
|
Dave Halter
|
e9a0c01af8
|
TypedDictBase -> TypedDictClass
|
2020-05-10 03:17:07 +02:00 |
|
Dave Halter
|
d0270b5e59
|
DefineGenericBase -> DefineGenericBaseClass
|
2020-05-10 03:07:40 +02:00 |
|
Dave Halter
|
b57654aed3
|
Rename some classes to make it clearer that they are classes
|
2020-05-10 03:04:52 +02:00 |
|
Dave Halter
|
78ad06612e
|
Remove an unused import
|
2020-05-10 03:00:47 +02:00 |
|
Dave Halter
|
434866558a
|
Instances should not need get_generics
|
2020-05-10 02:59:54 +02:00 |
|
Dave Halter
|
42963a0e03
|
By having get_annotated_class_object for Tuple/Callable, some details are not necessary anymore
|
2020-05-10 02:52:42 +02:00 |
|
Dave Halter
|
c2d1da09cb
|
Make sure that Tuple/Callable instances have the correct py__class__
|
2020-05-10 01:05:55 +02:00 |
|
Dave Halter
|
f362932ec5
|
Return a more correct py__class__ for typing base objects
|
2020-05-09 16:28:05 +02:00 |
|
Dave Halter
|
3b48c76e4a
|
Make a function private
|
2020-05-09 00:49:37 +02:00 |
|
Dave Halter
|
d56f607f35
|
Reinstate an if that was deleted by mistake
|
2020-05-09 00:13:18 +02:00 |
|
Dave Halter
|
39a2cd8aa2
|
Fix a potential issue with tuples
|
2020-05-08 18:07:15 +02:00 |
|
Dave Halter
|
14ca8e6499
|
Add a comment
|
2020-05-08 18:00:35 +02:00 |
|
Dave Halter
|
2a227dcc7a
|
Remove is_class_value from infer_type_vars
|
2020-05-08 17:49:02 +02:00 |
|
Dave Halter
|
12090ce74b
|
Fix tests
|
2020-05-08 15:18:23 +02:00 |
|
Dave Halter
|
25973554e2
|
Remove the common folder and move it to a common file
|
2020-05-08 13:23:56 +02:00 |
|
Dave Halter
|
138c22afe9
|
Remove common.value
|
2020-05-08 13:18:01 +02:00 |
|
Dave Halter
|
d19535340c
|
Move infer_type_vars to base_value
|
2020-05-08 13:13:26 +02:00 |
|
Dave Halter
|
5fcbed721d
|
Merge pull request #1554 from PeterJCLaw/fix-nested-tuple-argument
Fix handling of nested tuple arguments
|
2020-05-08 12:49:44 +02:00 |
|
Dave Halter
|
d606ea6759
|
Correct a test
|
2020-04-27 09:59:38 +02:00 |
|
Dave Halter
|
c314e1c36e
|
Speed up signature fetching for MixedName, see discussion in #1422
|
2020-04-27 01:53:42 +02:00 |
|
Dave Halter
|
8c7a883abd
|
Test that the actual signature of a function is used in Interpreter
|
2020-04-27 01:47:06 +02:00 |
|
Dave Halter
|
9836a1b347
|
Very small refactoring
|
2020-04-26 12:47:44 +02:00 |
|
Dave Halter
|
4d9cb083ac
|
Merge pull request #1561 from PeterJCLaw/newtype-pyclass
Support accessing the py__class__ of a NewType
|
2020-04-26 02:15:17 +02:00 |
|
Dave Halter
|
dca505c884
|
Merge pull request #1553 from PeterJCLaw/generic-tuple-return
Fix construction of nested generic tuple return types
|
2020-04-26 01:28:51 +02:00 |
|
Dave Halter
|
7fd5c8af8f
|
Allow files for get_default_project, fixes #1552
|
2020-04-26 00:33:10 +02:00 |
|
Dave Halter
|
97fb95ec0c
|
Don't display unnecessary help, fixes #1557
|
2020-04-26 00:21:01 +02:00 |
|
Dave Halter
|
e6d8a955d2
|
Pin Django in a different way so tests can work everywhere
|
2020-04-25 23:25:51 +02:00 |
|
Dave Halter
|
a3a147f028
|
Make sure that Django's values/values_list is tested (though not implemented
|
2020-04-25 22:55:29 +02:00 |
|
Dave Halter
|
c761dded35
|
Properly implement inheritance for Django models
|
2020-04-25 22:55:29 +02:00 |
|
Dave Halter
|
92623232c3
|
Make sure Django User inference works
|
2020-04-25 22:55:29 +02:00 |
|
Dave Halter
|
9b58bf6199
|
Pin the Django test dependency
|
2020-04-25 22:55:29 +02:00 |
|
Dave Halter
|
9d5eb28523
|
Mention django stubs support in README
|
2020-04-25 22:55:29 +02:00 |
|
Dave Halter
|
857e0fc00e
|
Include Django stubs license in Jedi package
|
2020-04-25 22:55:29 +02:00 |
|
Dave Halter
|
bf8b58aeeb
|
Some more django query tests
|
2020-04-25 22:55:29 +02:00 |
|
Dave Halter
|
f6803bce2c
|
Infer many to many fields
|
2020-04-25 22:55:29 +02:00 |
|
Dave Halter
|
6bff30fbbb
|
Include Django stubs as a third party repo
|
2020-04-25 22:55:29 +02:00 |
|
Dave Halter
|
6d927d502e
|
Make sure that infering the Django User model works
|
2020-04-25 22:55:29 +02:00 |
|
Dave Halter
|
2e1284f044
|
Fix a recursion error issue
|
2020-04-25 22:55:29 +02:00 |
|
Dave Halter
|
11eb4f8fde
|
Remove unused imports
|
2020-04-25 22:55:29 +02:00 |
|
Dave Halter
|
784f9ff081
|
Actually fix #1556, forgot to add this in 94d374c9ce
|
2020-04-23 10:10:58 +02:00 |
|
Dave Halter
|
0f39135ae5
|
Start changelog for 0.17.1
|
2020-04-22 23:14:58 +02:00 |
|
Dave Halter
|
94d374c9ce
|
Fix a small issue with the help method, fixes #1556
|
2020-04-22 17:32:40 +02:00 |
|
Dave Halter
|
f3152a8c2b
|
Django is not supported for Python 2
|
2020-04-22 09:44:43 +02:00 |
|
Dave Halter
|
f3eaa418bb
|
Work with a NameWrapper, so Django goto works better
|
2020-04-22 09:32:39 +02:00 |
|
Dave Halter
|
f9176578ea
|
Fix another django modelfield issue
|
2020-04-22 00:54:43 +02:00 |
|
Dave Halter
|
17eeb73767
|
Some nitpicks
|
2020-04-22 00:41:59 +02:00 |
|
Dave Halter
|
7756792bba
|
Fix another issue with foreign keys
|
2020-04-22 00:33:51 +02:00 |
|
Dave Halter
|
ba4e3393d3
|
Fix ForeignKey issues with invalid values
|
2020-04-22 00:27:06 +02:00 |
|
Dave Halter
|
1a89fafce4
|
Some other small refactorings
|
2020-04-22 00:15:35 +02:00 |
|
Dave Halter
|
df307b8eda
|
Refactor a few things for django
|
2020-04-22 00:05:35 +02:00 |
|
Dave Halter
|
d96887b102
|
Remove old third party django tests
|
2020-04-21 23:43:59 +02:00 |
|