Dave Halter
947bfe7b78
Fix an issue with keyword params, fixes #1356
2019-07-03 22:35:46 -07:00
Dave Halter
de138e9114
Improve a bit of dataclasses support, so at least the attributes can be seen
...
see #1213
2019-07-03 09:21:57 -07:00
mwchase
925fc89447
Get typing.NewType working ( #1344 )
...
Squashed from the following commits:
* Update pep0484.py
(I don't think I want to know why the cursor jumped to the beginning of the line with every keystroke in GitHub's online editor. Change was entered backwards.)
* Added test for inline use of NewType. Currently assuming that wrapped instances should get the underlying type.
* Altered tests per https://github.com/davidhalter/jedi/issues/1015#issuecomment-356131566
* Add NewTypeFunction to typing evaluation module
* Update AUTHORS.txt
* Add a new test, and a speculative justification
For now, address only the second comment
* Copy code from third comment on the PR
From inspection, I *believe* I understand what this code is doing, and as such, I believe this should cause the new test I added in response to the second comment to fail, because that test is based on faulty assumptions.
* Explicitly discard the key from the tuple
* Update pep0484_typing.py
* Test for the wrapped type, not the wrapper "type"
* Change the return value from calling a NewType
2019-07-01 22:42:59 -07:00
Dave Halter
1e3b6a201d
Fix filters for classes and functions
2019-07-01 22:24:29 -07:00
Dave Halter
3829ef4785
Fix some small things to get more tests passing
2019-07-01 21:52:03 -07:00
Dave Halter
b382f06be0
A better repr for Definition
2019-07-01 19:40:06 -07:00
Dave Halter
94faceb57c
Merge branch 'master' of github.com:davidhalter/jedi
2019-06-30 22:14:02 -07:00
Dave Halter
a9ff58683e
Fix ClassVar filter for instances
2019-06-26 22:56:30 +02:00
Dave Halter
fafd6b2ac6
Keyword completions are no longer possible directly after a number, fixes #1085
2019-06-26 15:04:46 +02:00
Nelson, Karl E
344a03e6b2
Fix for EmptyCompiledName
2019-06-24 23:51:19 +02:00
Dave Halter
265abe1d08
Fix super call goto for multiple inheritance, fixes #1311
2019-06-24 09:53:56 +02:00
Dave Halter
ebdae87821
goto should always goto definitions, fixes #1304
2019-06-24 01:25:26 +02:00
Dave Halter
56ec79d62a
Fix star imports checks, fixes #1235
2019-06-22 16:45:56 +02:00
Dave Halter
c413b486fb
Actually import IsADirectoryError
2019-06-22 15:43:11 +02:00
Dave Halter
3ae4a154f9
Fix project search if a directory is called manage.py, fixes #1314
2019-06-22 14:04:32 +02:00
Dave Halter
aa2dc6be09
Return annotations for compiled objects now help to infer
...
However only if it's a type, if it's a string, it doesn't work, yet
Fixes #1347
2019-06-22 00:15:20 +02:00
Dave Halter
454447d422
Fix an invalid escape sequence
2019-06-20 21:43:52 +02:00
Dave Halter
4479b866ff
CompiledContext should not have a file
2019-06-20 20:30:23 +02:00
Dave Halter
907fdaa153
Fix some minor errors
2019-06-20 09:53:40 +02:00
Dave Halter
b85c0db72e
Fix a typo
2019-06-19 18:32:09 +02:00
Dave Halter
5f81353182
Make the jedi documentation more concise
2019-06-19 18:25:11 +02:00
Dave Halter
b71a851081
Write a better introduction text
2019-06-19 10:12:23 +02:00
Dave Halter
474dcb857a
Some small docs improvements
2019-06-19 09:59:21 +02:00
Dave Halter
2cf1797465
Caching for get_parent_scope
2019-06-18 10:04:10 +02:00
Dave Halter
f2f54f2864
Create a better cache to avoid the amount of get_definition/is_definition calls in parso
2019-06-18 09:29:39 +02:00
Dave Halter
860f627f48
Merge branch 'master' of github.com:davidhalter/jedi
2019-06-15 02:14:29 +02:00
Dave Halter
3ddbee1666
Fix issues for socket
2019-06-15 02:07:30 +02:00
Dave Halter
fc20faf8f8
Remove _apply_qualified_name_changes, because it's really not needed
2019-06-15 01:58:54 +02:00
Dave Halter
0749e5091a
Apparently a change we made does not seem to be needed
2019-06-15 01:57:59 +02:00
Dave Halter
e61949da66
Fix some collections.deque issues
2019-06-15 01:56:49 +02:00
Dave Halter
fdad24cc0a
Fix some test errors
2019-06-15 01:42:50 +02:00
Dave Halter
3ed30409ea
Some progress in trying to make the deque work
2019-06-14 09:36:23 +02:00
Dave Halter
d55d494e0a
Merge pull request #1342 from JCavallo/ignore_unknown_super_calls
...
Ignore super calls when super class cannot be inferred
2019-06-14 00:28:08 +02:00
Dave Halter
4564275eba
By default a name has no qualified names
2019-06-13 09:45:59 +02:00
Jean Cavallo
ce97b0a5e7
Make sure py__bases__always return something
2019-06-13 09:37:51 +02:00
Dave Halter
5a26d4cf8f
Prefer stubs to Python names when starting to infer
2019-06-13 09:26:50 +02:00
Dave Halter
097b073d20
Undo the tensorflow speedups, because they seem to cause more harm than good, see #1116
2019-06-12 10:00:45 +02:00
Jean Cavallo
a3afdc0ece
Ignore super calls when super class cannot be inferred
2019-06-12 09:51:08 +02:00
Dave Halter
78973a9f35
Move execute_evaluated to HelperContextMixin
2019-06-11 17:46:30 +02:00
Dave Halter
f672d3329a
Make sure that execute is always called with arguments
2019-06-11 09:37:24 +02:00
Dave Halter
be269f3e1c
Remove a print
2019-06-10 22:21:41 +02:00
Dave Halter
c1047bef4f
Ignore warnings for numpydocs
2019-06-10 21:41:15 +02:00
Dave Halter
5ef0563abe
Don't use stub_to_python_context_set anymore
2019-06-10 19:39:26 +02:00
Dave Halter
56d8945d17
Use convert_context function for docs lookup
2019-06-10 19:17:50 +02:00
Dave Halter
7f853a324a
Fix a small copy paste fail
2019-06-10 19:05:03 +02:00
Dave Halter
7f3e55df02
Fix conversion for contexts
2019-06-10 18:56:37 +02:00
Dave Halter
9871fe2adf
Be even more strict with numpy doctsring parsing, it should just be ignored if it fails in any ways
2019-06-10 17:40:39 +02:00
Dave Halter
95f3aed82c
Eliminate more actual appearances
2019-06-10 16:16:34 +02:00
Dave Halter
8ba3e5d463
Change some names from actual -> python
2019-06-10 16:02:05 +02:00
Dave Halter
c8937ccdbf
Add only_stubs and prefer_stubs as parameters to goto_assignments/goto_definitions
2019-06-10 15:59:12 +02:00