muffinmad
16e2b86bcf
Fix test
2020-05-13 01:18:47 +03:00
muffinmad
ce8473ee63
Add author's name to AUTHORS.txt
2020-05-12 23:34:28 +03:00
muffinmad
7ccee7d8fc
Add test _PseudoTreeNameClass.type == 'class'
2020-05-12 23:28:46 +03:00
muffinmad
7cd89cff6e
Return 'class' as BaseName.type of _PseudoTreeNameClass ( fix #1578 )
2020-05-12 23:14:32 +03:00
Vlad Serebrennikov
e1c0d2c501
Reduce noise in signatures of compiled params ( #1564 )
...
* Remove "typing." prefix from compiled signature param
* Don't print default "None" for Optional params
* Don't remove 'typing.' prefix if symbol doesn't come from typing module
* Revert "Don't print default "None" for Optional params"
This reverts commit 8db334d9bb .
* Make sure "typing." doesn't appear in the middle
* Make sure only "typing." prefix is removed and not it's entries in the middle
* Use inspect.formatannotation() to create an annotation string
* Update AUTHORS.txt
* Add test for compiled param annotation string
* Replace Optional in test with other typing facilities
in order for test to be forward-compatible with 3.9
* Add an empty string fallback for Python 2
* Move _annotation_to_str back to original position
2020-05-10 13:33:36 +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
Max Mäusezahl
1115cbd94d
This fixes two issues with the caching on Windows:
...
* the cache directory should really be %LOCALAPPDATA%
* ~ is not a meaningful directory on Windows. It should really be
os.path.expanduser('~'). To be honest it is probably always safe to
assume that os.getenv('LOCALAPPDATA') executes to something sensible
on any Windows system that hasn't been tampered with.
2020-05-10 11:46:29 +02:00
Dave Halter
bf4ec2282f
Fix getattr completions on very weird cases, fixes #1573
2020-05-10 11:37:58 +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
Sam Roeca
812776b9ce
Add .venv to _IGNORE_FOLDERS
...
".venv" is a popular virtual environment folder name; project.search
gets really mucked up when it isn't ignored.
2020-05-05 21:15:18 +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
Peter Law
55facaaf3d
Switch back to using execute_annotation
...
get_annotated_class_object is (sort-of) the inverse of execute_annotation,
so adding a get_annotated_class_object to implement execute_annotation
specifically for Tuples didn't make much sense.
2020-04-26 14:39:39 +01:00
Peter Law
17ca3a620f
Merge branch 'master' into fix-nested-tuple-argument
2020-04-26 13:56:14 +01:00
Dave Halter
9836a1b347
Very small refactoring
2020-04-26 12:47:44 +02:00
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
Peter Law
c19c13e2c6
Apply tuple-only filtering to apply more broadly
2020-04-24 16:44:25 +01:00
Peter Law
891383f8dc
Use get_annotated_class_object over execute_annotation
2020-04-24 16:32:00 +01:00
Peter Law
ce1ac38cde
Implement get_annotated_class_object for Tuples
2020-04-24 16:25:19 +01:00
Peter Law
df951733cd
Rename variable to placate mypy
2020-04-24 12:45:05 +01: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