Dave Halter
fa0424cfd6
Fix signatures for wraps, see #1058
2019-07-29 00:13:05 +02:00
Dave Halter
02bd7e5bc7
Some small args adaptions
2019-07-28 20:22:28 +02:00
Dave Halter
e8e3e8c111
Deal better with non-functions
2019-07-28 19:52:48 +02:00
Dave Halter
c8588191f9
Some more small fixes
2019-07-28 18:09:08 +02:00
Dave Halter
97e7f608df
Don't return multiple used names for signatures
2019-07-28 17:51:40 +02:00
Dave Halter
fae2c8c060
Move args resolving to a different file
2019-07-28 17:41:28 +02:00
Dave Halter
b4f2d82867
A new approach of getting arguments
2019-07-28 17:31:17 +02:00
Dave Halter
6a480780f8
Some more tests
2019-07-26 14:51:30 +02:00
Dave Halter
41dc5382fa
Make nesting of *args/**kwargs possible to understand.
2019-07-26 14:42:20 +02:00
Dave Halter
ba160e72ab
Some more signature progress
2019-07-26 14:29:33 +02:00
Dave Halter
0703a69369
Some progress in signature understanding
2019-07-26 12:11:45 +02:00
Dave Halter
c490d37c2d
Start getting signature inferring working
2019-07-26 02:54:50 +02:00
Dave Halter
84219236a7
Remove an import
2019-07-25 14:15:52 +02:00
Dave Halter
57fd995727
Small refactoring
2019-07-25 14:15:26 +02:00
Dave Halter
05d9602032
Fix partial signatures for MixedObject
...
Now a MixedObject return the signatures of its CompiledObject all the time, fixes #1371
2019-07-24 12:58:20 +02:00
Dave Halter
e76120da06
Fix partial signatures, fixes #1371
2019-07-24 02:28:49 +02:00
Dave Halter
703b747a31
Deal with annotation on *args and **kwargs correctly, fixes #980
2019-07-23 23:56:30 +02:00
Dave Halter
ff149b74e0
Use LazyContextWrapper more
2019-07-23 13:59:08 +02:00
Dave Halter
3d08eb92d5
Very small refactoring
2019-07-23 13:08:57 +02:00
Johannes-Maria Frank
02d16ac55c
Fix for failing assertion on native modules Issue #1354 ( #1370 )
2019-07-23 13:02:08 +02:00
Dave Halter
13dd173664
Remove code that didn't mean anything
2019-07-22 00:39:19 +02:00
Dave Halter
73c078ec7a
Fix docstrings for wrapped functions, fixes #906
2019-07-21 12:19:22 +02:00
Dave Halter
2b0b29f921
Make it clearer when get_param is used.
2019-07-19 11:57:55 +02:00
Dave Halter
0dc60fb535
A small dataclass refactoring
2019-07-19 11:44:11 +02:00
Dave Halter
050d686a27
A first working iteration of dataclass signatures, fixes #1213
2019-07-19 02:01:36 +02:00
Dave Halter
7156ddf607
Remove an unused function
2019-07-19 01:32:27 +02:00
Dave Halter
1cccc832b6
Dataclass progress
2019-07-19 01:27:37 +02:00
Dave Halter
1d9b9cff47
Fix a recursion error about getting metaclasses
2019-07-18 12:02:27 +02:00
Dave Halter
c7fc715535
Use class filters in instances differently so metaclass plugins work, fixes #1090
2019-07-18 11:20:54 +02:00
Dave Halter
eeea88046e
First step in working with metaclasses in plugins, see #1090 .
2019-07-18 11:20:28 +02:00
Dave Halter
dea887d27d
Refactor the plugin registry
2019-07-16 12:48:54 +02:00
Dave Halter
8329e2e969
Remove classes from plugins and use decorators instead
2019-07-16 10:23:19 +02:00
Dave Halter
3ed9e836cc
Make sure __wrapped__ works properly when using an Interpreter, fixes #1353
2019-07-10 16:12:57 -07:00
Dave Halter
f984e8d6ef
Small refactoring
2019-07-10 15:38:41 -07:00
Dave Halter
670cf4d394
Make API param names appear without leading double underscores, fixes #1357 again
2019-07-10 12:10:12 -07:00
Dave Halter
a26cb42d07
Disable a test for Python 2
2019-07-04 09:31:22 -07:00
Dave Halter
6b9b2836ba
Fix pow() signature, fixes #1357
...
This commit changes how params starting with __ are viewed as positional only params
2019-07-04 00:29:57 -07:00
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
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
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
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
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