1
0
forked from VimPlug/jedi
Commit Graph

244 Commits

Author SHA1 Message Date
Dave Halter
c51634b8d4 dict_values should be accessible for CompiledObjects. 2017-09-17 02:48:09 +02:00
Dave Halter
9dd2027299 Way better support for instantiated classes in REPL
Fixes several issues:

- It was not possible to correctly trace where instances were coming from in a
  REPL. This led to them being pretty much ignored.
- Instances were then just treated as classes and not as actual instances in
  MixedObjects. (However since they were ignored in the first place this
  wasn't really an issue).
- Avoiding the repr bug https://github.com/python/cpython/pull/2132/files in
  Jedi is working a bit differently. We're just never accessing Objects
  directly. This should work around 99.99% of the cases were people are using
  this stuff.

Fixes #872
2017-09-15 01:55:18 +02:00
Dave Halter
80284fb14b Gracefully fail in 2.7 because inspect.signature is not available. 2017-09-10 01:36:32 +02:00
Dave Halter
5c6f8bda01 Fix inspect.signature for Python3.4. 2017-09-10 01:34:15 +02:00
Dave Halter
d1c85191a0 Start using inspect.signature for CompiledObject params.
Fixes 917 and 924.
2017-09-09 22:29:00 +02:00
Dave Halter
3bceef075a Merge branch 'numpydoc' of https://github.com/bcolsen/jedi 2017-09-09 18:50:19 +02:00
Dave Halter
c4601b835f Don't go crazy with big lists. 2017-09-07 01:26:53 +02:00
Dave Halter
d2b4e0511f Ignore stdlib paths for dynamic param inference. 2017-09-07 00:09:14 +02:00
Dave Halter
88cfb2cb91 Remove side effects when accessing jedi from the interpreter.
Note that there is http://bugs.python.org/issue31184.
Fixes #925.
2017-08-12 22:49:05 +02:00
bcolsen
d19a97f53a Numpydocs and compiled objects return types 2017-08-08 22:46:33 -06:00
Dave Halter
14eeb60240 Remove is_scope from CompiledObject. It's not needed according to tests. 2017-05-05 09:23:50 +02:00
Dave Halter
3e05061f3b Remove old unused code. 2017-04-28 18:34:02 +02:00
Matthias Bussonnier
b0f10081d4 Fix : Jedi do not complete numpy arrays in dictionary
Fix ipython/ipython#10468
2017-04-21 13:14:07 +02:00
Dave Halter
ac8ed62a77 Remove FakeName since it's not actually used anymore. 2017-04-20 09:52:31 +02:00
Dave Halter
7ca62578e1 Add py__doc__ as a better approach to docstrings. 2017-04-20 09:45:15 +02:00
Dave Halter
a0b65b52c6 used_names -> get_used_names(). 2017-04-12 08:56:11 +02:00
Dave Halter
fe5eaaf56c Add a better debugging message for import fails. 2017-04-04 23:27:45 +02:00
Dave Halter
448bfd0992 Move the python parser tree. 2017-03-16 17:20:32 +01:00
Matthias Bussonnier
fc27ca1b6a 'fix a couple of error locations' 2017-02-24 13:03:03 +01:00
Dave Halter
ae8e43d3c7 Move get_node() to tree_node and replace all the custom classdefs/funcdefs. 2017-01-05 23:43:12 +01:00
Dave Halter
b44f0aae5d Remove the origin_scope from filters that don't need it. 2017-01-05 21:57:06 +01:00
Dave Halter
464968aed7 Fix an issue where compiled object api types raised an error. 2016-12-21 00:23:50 +01:00
Dave Halter
437f915f35 Delete a lot of names dict related stuff but also other things that were not used anymore. 2016-12-17 16:51:28 +01:00
Dave Halter
d93f6815fc Refactor test_interpreter. 2016-12-16 18:55:21 +01:00
Dave Halter
9ac301d0c3 Refactor the mixed objects a bit to make at least some interpreter tests pass. 2016-12-16 17:17:03 +01:00
Dave Halter
cb4f405f7d Fix some internal name handling. 2016-12-05 22:27:18 +01:00
Dave Halter
6f4cd7e6d3 Improve api class tests. 2016-12-04 20:04:54 +01:00
Dave Halter
439e394535 Fix call signatures. 2016-12-04 03:52:33 +01:00
Dave Halter
6940900c58 A lot more fixes - fix all evaluate integration tests. 2016-12-03 22:17:38 +01:00
Dave Halter
760f900560 Fix a python3 issue with py__file__. 2016-12-03 13:41:55 +01:00
Dave Halter
da1a163da7 Fix python 2 string iterators. 2016-12-03 02:08:40 +01:00
Dave Halter
9d4786ddcb Refactor the descriptor logic. 2016-12-02 22:13:45 +01:00
Dave Halter
d74e48dae2 Fix context completions and super calls. 2016-11-29 18:38:04 +01:00
Dave Halter
bad1f85f8f Improvements towards arrays / predefined names logic. 2016-11-25 23:31:45 +01:00
Dave Halter
05581714d9 Fix goto tests. 2016-11-17 23:28:47 +01:00
Dave Halter
d15016c5c1 Fix the whole test suite of descriptors. 2016-11-16 22:57:07 +01:00
Dave Halter
ba03f1dcb9 Fix properties. 2016-11-16 21:16:12 +01:00
Dave Halter
cf00c83ed8 Fix parameter issues in functions that are defined on self. 2016-11-13 03:29:36 +01:00
Dave Halter
7848be97ab Some improvements towards iterators. 2016-11-12 03:53:25 +01:00
Dave Halter
20380e80b0 Remove type(self).__name__ occurences, because python 2 will always output 'instance'. 2016-11-08 19:18:03 +01:00
Dave Halter
afac66d82c Working on __init__. 2016-11-06 18:28:04 +01:00
Dave Halter
82667b85b9 Publicize the _evaluator in contexts. 2016-11-03 09:54:47 +01:00
Dave Halter
90af0c36e0 Function -> FunctionContext and fakes use the FunctionContext, too. 2016-10-25 09:59:42 +02:00
Dave Halter
e34246eb00 Fix __call__. 2016-10-24 00:39:59 +02:00
Dave Halter
2e6603cc2e A lot of small improvements. 2016-10-22 17:40:42 +02:00
Dave Halter
4ccfbb4962 Use super().__getattribute__ instead of custom AttributeErrors in __getattr__. 2016-10-21 02:12:54 +02:00
Dave Halter
cad9ae8ab1 Start implemeting contexts with specialized TreeNameDefinitions to avoid gambling with the parser. 2016-10-20 19:36:44 +02:00
Dave Halter
129c669bc0 Fix private variables in filters. 2016-10-15 19:12:46 +02:00
Dave Halter
fce0eff18a Get rid of all names_dicts in the completion api. 2016-10-12 03:40:24 +02:00
Dave Halter
482103e796 Replace names_dicts with filters in trailer completion. 2016-10-12 02:34:50 +02:00