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
ebb2786748
Avoid AttributeErrors for generics when a module is passed
2020-04-01 01:59:13 +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
7e9ad9e733
Fix typo
2020-03-25 22:32:53 +00:00
Peter Law
5ca69458d4
Add testing for mismatch cases
...
This should help catch any errors in our handling of invalid cases.
While some of these produce outputs which aren't correct, what
we're checking here is that we don't _error_ while producing that
output.
Also fix a case which this showed up.
2020-03-22 15:10:43 +00:00
Dave Halter
bb9731b561
Fix wrong types for iterate, fixes #1524
2020-03-21 18:09:03 +01:00
Dave Halter
a2f4d1bbe7
Fix stub conversion for Decoratee, so docstrings work, see #117
2020-03-21 17:23:27 +01:00
Dave Halter
88c13639bc
Remove unused environment param
2020-03-21 03:19:39 +01:00
Dave Halter
28c1ba6c1c
Fix a Python 2 test
2020-03-21 03:13:59 +01:00
Dave Halter
a2764283ba
Merge branch 'refactor'
2020-03-21 02:54:07 +01:00
Dave Halter
0ffd566957
Merge branch 'project'
2020-03-21 02:52:51 +01:00
Dave Halter
5b54ac835d
Fix deprecations in tests
2020-03-21 02:42:00 +01:00
Dave Halter
5f6a25fb58
Add deprecations warnings, to deprecated functions in the main API
2020-03-21 02:30:07 +01:00
Dave Halter
d6d9286242
Get rid of deprecations in tests
2020-03-21 02:15:57 +01:00
Dave Halter
4c964ae655
Fix some test results
2020-03-21 01:52:56 +01:00
Dave Halter
8000d425ec
Don't use desc_with_module in integration tests
2020-03-21 01:47:00 +01:00
Dave Halter
2f651966e7
Make jedi testing explanations better
2020-03-19 02:13:01 +01:00
Peter Law
95b0cdcb5e
Add test for child of specialised generic
2020-03-18 22:15:32 +00:00
Dave Halter
7de475318a
Minor refactoring
2020-03-17 10:00:38 +01:00
Dave Halter
d26926a582
Definition -> Name
2020-03-17 09:33:12 +01:00
Dave Halter
0731206b9d
BaseDefinition -> BaseName
2020-03-17 09:25:30 +01:00
Dave Halter
9240a20d13
Remove an old note that was not valid anymore
2020-03-16 00:21:15 +01:00
Dave Halter
0888dd468f
Fix partialmethod issues
2020-03-14 01:22:46 +01:00
Dave Halter
fd9a493868
Make sure partialmethod tests are only executed for Python 3
2020-03-14 00:45:43 +01:00
Dave Halter
661fdb2b26
Merge branch 'add-partialmethod' of https://github.com/ffe4/jedi
2020-03-14 00:28:06 +01:00
Dave Halter
10bc578bfe
Merge branch 'master' into refactor
2020-03-13 23:53:09 +01:00
Daniel Lemm
2406e58386
Refactor stdlib PartialObject
...
Merges PartialObject and PartialMethodObject. Also adds more tests.
Some parts are still WIP, see: #1522 .
Fixes #1519
2020-03-13 23:47:48 +01:00
Dave Halter
5cd212c51c
Merge branch 'expandtab' of https://github.com/Carreau/jedi
...
Also modify the test a bit to make sure that it passes properly if there are
folders present.
2020-03-13 23:40:48 +01:00
Daniel Lemm
fd6540a9e5
Fix PartialMethodObject (WIP)
...
Implemented feedback from PR #1522 .
Does not pass new tests in test/completion/stdlib.py
2020-03-13 21:40:58 +01:00
Dave Halter
521e240c5f
Changed semantics of ClassVar attributes in classes, fixes #1502
2020-03-13 12:54:29 +01:00
Dave Halter
b4fa42a282
Avoid duplicate definitions for goto, fixes #1514
2020-03-13 02:22:05 +01:00
Dave Halter
fb72e1b448
Merge _remove_statements and infer_expr_stmt, fixes #1504
2020-03-13 00:50:25 +01:00
Daniel Lemm
96c969687a
Add partialmethod, fixes #1519
...
Returns correct method signature but test/completion/stdlib.py fails
2020-03-12 18:47:17 +01:00
Dave Halter
b247423184
Indentation
2020-03-11 19:26:59 +01:00
Dave Halter
9c77113e21
Fix string completions with quote prefixes, fixes #1503
2020-03-11 19:26:42 +01:00
Dave Halter
91857c2c0a
Fix issues with iter_module_names
2020-03-11 00:19:40 +01:00
Dave Halter
886dadaaff
Skip more tests for Python 2/3.5
2020-03-10 20:17:39 +01:00
Dave Halter
d574162da3
Fix namedtuple docstring/signature issues, fixes #1506
2020-03-10 20:07:10 +01:00
Dave Halter
bedf3bff0e
Add Project.complete_search instead of the complete param
2020-03-10 08:31:15 +01:00
Dave Halter
d838eaecd2
Implement Script.complete_search instead of the complete param and return Completion objects
2020-03-09 23:55:17 +01:00
Dave Halter
7247c32990
Refactor load_module_from_path to be simpler
2020-03-09 17:40:14 +01:00
Dave Halter
75ae73ee97
Load -stubs packages properly in _load_python_module
2020-03-09 17:27:51 +01:00
Dave Halter
753440682e
Some further testing of code search with stubs
2020-03-08 15:12:57 +01:00
Dave Halter
53f39c88e4
Try to fix a few more stub issues in search
2020-03-08 15:02:00 +01:00
Dave Halter
d3e3021a3d
Care better about stubs for code search
2020-03-08 13:16:06 +01:00
Dave Halter
e46e1269a2
Finally use the string_names attribute to identify module names instead of some fucked up path calculation.
2020-03-08 12:58:44 +01:00
Dave Halter
a5f7412296
Load stub modules if it's a stub
2020-03-08 11:51:39 +01:00
Dave Halter
58998748e3
Make it clear in search tests if a stub or a normal definition is expected
2020-03-07 20:43:57 +01:00