Dave Halter
8fdf16b316
Fix an error of get_definition_end_pos, see #1584
2020-05-18 01:44:51 +02:00
Dave Halter
2d17b81313
definition_end_position -> get_definition_end_position, same for start, see #1584
2020-05-18 01:18:22 +02:00
Sam Roeca
716beae455
Add BaseName.definition_[start,end]_position
...
Provides two public (property) methods getting the (row, column) of the
start / end of the definition range. Rows start with 1, columns start
with 0.
:rtype: Tuple[int, int]
2020-05-16 15:08:36 -04:00
Dave Halter
c314e1c36e
Speed up signature fetching for MixedName, see discussion in #1422
2020-04-27 01:53:42 +02:00
Dave Halter
9836a1b347
Very small refactoring
2020-04-26 12:47:44 +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
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
8000d425ec
Don't use desc_with_module in integration tests
2020-03-21 01:47:00 +01:00
Dave Halter
516b58b287
Fix a lot of sphinx warnings
2020-03-18 10:16:32 +01:00
Dave Halter
72a3a33e33
ParamDefinition -> ParamName
2020-03-17 09:34:28 +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
4a065642f2
Docs: Reformat API return classes
2020-03-17 08:34:51 +01:00
Christopher Cave-Ayland
17b3611c53
Included statement as a possible return type for BaseDefinition.type
2020-03-16 00:36:17 +01:00
Dave Halter
0f25eb9c9a
Way more docs work
2020-03-15 23:41:53 +01:00
Dave Halter
8ceb76b3f6
Move is_side_effect to BaseDefinition
2020-03-15 23:13:41 +01:00
Dave Halter
25e6db5e82
Some more docstring stuff
2020-03-15 23:12:38 +01:00
Dave Halter
7c7864d500
Improve docstrings for a lot of the return API classes
2020-03-15 23:02:30 +01:00
Dave Halter
a9761079e6
Remove follow_definition
2020-03-15 19:28:02 +01:00
Dave Halter
4af138f4fb
Merge branch 'docs' of https://github.com/blueyed/jedi into refactor
...
Almost all of the docstrings were still there.
2020-03-14 00:12:53 +01:00
Dave Halter
af055ec69c
Some minor refactorings of search
2020-03-01 19:39:26 +01:00
Dave Halter
a892887b04
Remove Python 3.4 support
2020-02-27 02:04:03 +01:00
Dave Halter
670d6e8639
Move is_side_effect to Definition and correct bugs
2020-02-04 20:12:24 +01:00
Dave Halter
6313934d94
Add a docstring for is_side_effect
2020-02-04 19:39:13 +01:00
Dave Halter
692bf5cfb7
Properly identify side effects, fixes #1411
2020-02-04 10:12:13 +01:00
Dave Halter
4c7179bc87
Generate type hints, fixes #987
2020-02-02 16:55:10 +01:00
Dave Halter
dbdd556a2b
Add follow_imports to Definition.goto, fixes #1474
2020-01-22 18:29:02 +01:00
Dave Halter
5c68304bec
Raise a proper exception instead of assert in case only_stubs and prefer_stubs are given
2020-01-22 10:00:10 +01:00
Dave Halter
8cc836e816
find_signatures -> get_signatures, see #1476
2020-01-22 01:10:38 +01:00
Dave Halter
bf446f2729
Add a completion cache for numpy/tensorflow, fixes #1116
2020-01-05 18:13:24 +01:00
Dave Halter
aca2a5a409
Undo finding signatures for everything and only do it for stubs and non-statements for when used in docstrings
2020-01-04 16:00:07 +01:00
Dave Halter
673ea0c5a5
Little refactoring
2020-01-03 10:38:00 +01:00
Dave Halter
92a2e17a9e
Remove get_signatures again from names
2020-01-03 00:54:13 +01:00
Dave Halter
3b6bbab556
Infer doctests and signatures uniformly, fixes #1466
2020-01-03 00:45:14 +01:00
Dave Halter
bac91652ea
Raise a deprecation warning on Definition.params
2020-01-02 16:11:58 +01:00
Dave Halter
04a738c014
Remove unnecessary code
2020-01-01 23:11:02 +01:00
Dave Halter
0a53ce5136
Separate getting docstrings and getting signatures for names, see discussion #1466
2020-01-01 23:05:06 +01:00
Dave Halter
54bd0b437f
Make sure that equals will only be added to keyword arguments and not just randomly
2020-01-01 19:00:17 +01:00
Dave Halter
22c3beffd0
Fix some issues with Definition.parent()
2019-12-22 15:37:53 +01:00
Dave Halter
290d1c151a
Remove the _Help class completely
2019-12-21 20:07:43 +01:00
Dave Halter
fcede44c2a
Move the docstring checking code to the names
2019-12-21 20:06:37 +01:00
Dave Halter
5fc308f1f8
call signature -> signature
2019-12-20 19:41:57 +01:00
Dave Halter
adff6d34a4
goto_assignment -> goto everywhere where it was left
2019-12-20 19:15:41 +01:00
Dave Halter
4bbaec68e8
Make sure goto_definitions is no longer used in the main code
2019-12-20 18:47:04 +01:00
Dave Halter
5bf6e7048b
A few renames for readability in the api/completion.py file
2019-12-20 17:40:04 +01:00
Dave Halter
2b5af19989
Fix signature issues
2019-12-20 16:14:01 +01:00
Dave Halter
f32b0aebeb
call_signatures -> find_signatures
2019-12-20 15:41:20 +01:00
Dave Halter
1f4be4bc51
Make sure that goto is used instead of goto_assignments
2019-12-20 14:31:42 +01:00