Commit Graph

2514 Commits

Author SHA1 Message Date
Dave Halter
ac492ef598 Fix signature to_string 2019-07-03 23:44:58 -07:00
Dave Halter
947bfe7b78 Fix an issue with keyword params, fixes #1356 2019-07-03 22:35:46 -07:00
Dave Halter
be6c90d135 Simplify some test code for param defaults, see #1356 2019-07-03 19:43:32 -07:00
Dave Halter
8cb059deda Merge branch 'function_signature_in_interpreter' of https://github.com/linupi/jedi 2019-07-03 19:11:36 -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
Linus Pithan
15bb9b29a2 adding test_kwarg_defaults to point out missing default value of kwargs in certain cases 2019-07-02 11:52:57 +02:00
Dave Halter
4c132d94b9 Make sure in tests that pep 0526 variables are also able to be used when using self, see #933 2019-07-01 23:34:28 -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
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
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
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
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
5ad0e3d72e Ignore some tests for Python 3.4, because it's end of life soon and the typing library doesn't exist for it 2019-06-19 01:37:16 +02:00
Dave Halter
38232fe133 Fix issues with Python 3.7 tests 2019-06-15 22:26:34 +02:00
Dave Halter
4405c4f190 Skip stub tests for Python 2 2019-06-15 21:59:54 +02:00
Dave Halter
c3a0fec2d9 Fix tests for stubs 2019-06-15 21:47:03 +02:00
Dave Halter
8e3caaca7f Improve the stub test a bit 2019-06-15 02:20:15 +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
e61949da66 Fix some collections.deque issues 2019-06-15 01:56:49 +02:00
Dave Halter
3ed30409ea Some progress in trying to make the deque work 2019-06-14 09:36:23 +02:00
Dave Halter
9b610c9760 Make sure there are proper tests for goto_assignments with prefer_stubs and only_stubs 2019-06-13 09:41:23 +02:00
Dave Halter
5a26d4cf8f Prefer stubs to Python names when starting to infer 2019-06-13 09:26:50 +02:00
Dave Halter
ad2fbf71ba Move stub tests 2019-06-12 14:00:56 +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
1b0677ec55 Fix some test imports 2019-06-10 19:48:46 +02:00
Dave Halter
7f3e55df02 Fix conversion for contexts 2019-06-10 18:56:37 +02:00
Dave Halter
144aa97c00 Fix imports for some tests 2019-06-10 17:41:29 +02:00
Dave Halter
95f3aed82c Eliminate more actual appearances 2019-06-10 16:16:34 +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
Dave Halter
a555def6ca Use a different function signature instead of a separate goto_stubs function 2019-06-10 02:27:22 +02:00
Dave Halter
827a79861d Add tests for positional only params 2019-06-09 22:56:20 +02:00
Dave Halter
eef02e5c56 Fix generator issues for typing 2019-06-08 01:50:38 +02:00
Dave Halter
26951f5c18 Fixed a few failing tests, that were failing, because of the qualified_names changes 2019-06-08 01:05:40 +02:00
Dave Halter
0ff1a88cc4 Use get_qualified_names for full_name 2019-06-08 00:18:31 +02:00
Dave Halter
f80828cb07 Fix issues with simple_getitem and mixed objects 2019-06-07 03:00:01 +02:00
Dave Halter
65d5c6eb2b Disable some more tests in Python 2 2019-06-07 02:45:48 +02:00
Dave Halter
94dfe7bf69 Use even more stubs to get more complex completions for e.g. strings working 2019-06-07 02:37:51 +02:00
Dave Halter
97f342fc4c Fix qualified names for CompiledObject 2019-06-07 01:33:37 +02:00
Dave Halter
a43a6cbc06 Add interpreter tests for collections.Counter 2019-06-06 23:44:55 +02:00
Dave Halter
8c495a1142 More tests for deque 2019-06-06 20:46:19 +02:00
Dave Halter
07f9f241c6 py__call__ is now always available 2019-06-06 10:04:48 +02:00
Dave Halter
b98bf07767 Avoid failing if additional dynamic modules is defined with files that don't exist 2019-06-06 00:43:24 +02:00
Dave Halter
84eb91beaa Add a few tests about simple completions for interpreters 2019-06-06 00:17:37 +02:00