Peter Law
8c3fd99009
Tell sith that goto_assignments is now goto
2020-04-26 02:15:53 +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
Peter Law
612fd23777
Support accessing the py__class__ of a NewType
...
The test here is a bit contrived, the actual place I found this
was in using a NewType as a type within a NamedTuple. However due
to https://github.com/davidhalter/jedi/issues/1560 that currently
also fails for other reasons. This still feels useful to fix on
its own though.
2020-04-26 00:59:07 +01: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
Josh Bax
912fe68069
Fix typos in api.classes docstrings
2020-04-24 10:34:46 +02:00
Josh Bax
be82d5ff36
Remove a redundant check from Name.desc_with_module
2020-04-24 10:34:46 +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
Dave Halter
89ad9a500b
Use debug instead of print for Django and fix indentation, see #1467
2020-04-21 23:41:54 +02:00
Dave Halter
086728365c
Make Django test optional
2020-04-21 23:36:00 +02:00
Dave Halter
f9e36943d4
Merge branch 'master' of https://github.com/ANtlord/jedi
2020-04-21 23:22:40 +02:00
ANtlord
b5c1c6d414
Django plugin test of ManyToManyField is added and marked for future implementation.
2020-04-21 10:56:22 +03:00
ANtlord
df76b2462e
Review corrections.
2020-04-20 10:31:03 +03:00
Peter Law
f8e7447d35
Add handling of nested generic callables
...
Previously tests for these were passing somewhat by accident,
however this commit's parent adds a case which showed that the
handling was missing.
Note that this also relies on the recent fix for nested tuples
which changed the `isinstance` check in `define_generics`.
2020-04-19 13:27:06 +01:00
Peter Law
2ac806e39f
Add test which demonstrates incomplete generic Callable handling
2020-04-19 13:25:02 +01:00
Peter Law
7ebbf9da44
Make this test case obey typing rules in Python
...
Unfortunately I can't recall exactly what it was that this test
case was trying to validate, however on a second look it turns
out that it was working by accident and did not represent a valid
use of generic type vars in Python (which cannot be used completely
unbound as this was).
2020-04-18 22:59:20 +01:00
Peter Law
1c4a2edbdb
Fix construction of nested generic tuple return types
...
Unfortunately this appears to show up a separate bug.
2020-04-18 19:43:47 +01:00
ANtlord
1d3082249f
Debug information corrections.
2020-04-18 18:51:12 +03:00
ANtlord
09950233e7
Django is designated in test dependencies.
2020-04-18 18:36:04 +03:00
ANtlord
d48575c8c5
Simple tests of Django plugin are added.
2020-04-18 16:13:48 +03:00
ANtlord
f8a0cf76c8
Merge branch 'master' of github.com:davidhalter/jedi
2020-04-18 14:25:24 +03:00
Dave Halter
851e0d59f0
Better developer tools
2020-04-18 12:19:17 +02:00
Dave Halter
10b2de2c3f
Make the linter completely private
2020-04-18 11:23:25 +02:00
Dave Halter
3718d62e24
Make sure that calling Jedi with a random argument in CLI results in errors
2020-04-18 11:23:12 +02:00
Dave Halter
a793dd7c91
Fix a small _get_annotated_class_object, fixes #1550
2020-04-18 00:36:32 +02:00