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
343a10d491
Drop redundant blank line
2020-04-19 14:42:57 +01:00
Peter Law
72c52f5f15
Add type match guard
2020-04-19 14:29:44 +01:00
Peter Law
cfa01d3ac5
Add handling of nested generic tuples
2020-04-19 14:10:03 +01: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
Dave Halter
0850b86456
Also don't complete keywords if kwargs only are allowed, see #1541
2020-04-17 23:51:40 +02:00
Dave Halter
f07dee3564
Completion: Don't suggest variables when only kwargs are legal, fixes #1541
2020-04-17 22:59:26 +02:00
xu0o0
f871f5e726
fix #1548
2020-04-17 19:24:05 +02:00
Ryan Clary
803c3cb271
* Use an explicit environment for subprocess to ensure that existing environment variables are not inherited. This ensures more reliable results, see issue #1540 .
...
* Attempt to send SYSTEMROOT variable to Windows subprocess
2020-04-16 00:52:44 +02:00
Michał Górny
7ff76bb7d0
Sort test_project::test_search results to fix failures
...
Fixes #1542
2020-04-15 17:21:40 +02:00
Michał Górny
e7feeef64e
Inc difference limit in TestSetupReadline::test_import for py3.8
...
Python 3.8 on Linux has 21 differences which exceed the current limit.
Increase it to 22.
2020-04-15 10:09:36 +02:00
Dave Halter
8aaa8e0044
Project._python_path -> Project.environment_path
v0.17.0
2020-04-14 23:14:07 +02:00
Dave Halter
cbfbe7c08d
Set the release date in Changelog
2020-04-14 22:59:17 +02:00
Dave Halter
81926a785c
Some README improvements
2020-04-14 00:06:32 +02:00
Dave Halter
9ccb596f93
Extract now properly validates line/column and those two params are required
2020-04-13 23:15:42 +02:00
Dave Halter
25db8de0da
Some minor CHANGELOG changes
2020-04-13 22:40:06 +02:00
Dave Halter
24dffe4226
Upgrade parso version
2020-04-13 22:33:51 +02:00
Dave Halter
c3fc129695
Fix a small issue
2020-04-12 00:54:31 +02:00
Dave Halter
02c3d651bd
Some more code quality fixes
2020-04-11 02:23:23 +02:00
Dave Halter
bdd4deedc1
Some code cleanups
2020-04-11 02:11:52 +02:00
Dave Halter
9d55194b92
Don't reuse a variable
2020-04-11 01:40:41 +02:00
Dave Halter
102f83ea85
Remove unreachable code
2020-04-11 01:39:04 +02:00
Dave Halter
22902f6dba
_convert_names kwargs are not needed
2020-04-11 01:37:34 +02:00
Dave Halter
5a3565785c
Add pyproject.toml to the list of files to search for projects
2020-04-11 00:51:28 +02:00
Dave Halter
0f2a7215bb
Use the interpreter environment if the executable is not available, fixes #1531
2020-04-02 20:59:35 +02:00
Dave Halter
61e9371849
Fix a potential AttributeError
2020-04-02 00:32:50 +02:00
Dave Halter
dde40b3a71
Add a comment to clarify the Type case
2020-04-02 00:23:38 +02:00
Dave Halter
ebb2786748
Avoid AttributeErrors for generics when a module is passed
2020-04-01 01:59:13 +02:00
Dave Halter
28f256d2a6
Merge branch 'improve-type-annotation-inference-refactors' of https://github.com/PeterJCLaw/jedi
2020-04-01 00:54:25 +02:00
Dave Halter
883f5a3824
Merge branch 'improve-type-annotation-inference' of https://github.com/PeterJCLaw/jedi
2020-04-01 00:54:13 +02:00
Dave Halter
ac33d5dea3
If branch inference should not trigger for things we don't know, fixes #1530
2020-03-31 22:46:31 +02:00
Dave Halter
604029568c
Fix string completion issue, fixes #1528
2020-03-26 15:47:27 +01:00
Peter Law
eac5ac8426
Update comment after refactor moved code
2020-03-25 22:35:12 +00:00
Peter Law
7e9ad9e733
Fix typo
2020-03-25 22:32:53 +00:00
Peter Law
e2090772f3
Push tuple handling onto Tuple class
...
This resolves a TODO to avoid using a private method
2020-03-22 16:04:39 +00:00