1
0
forked from VimPlug/jedi
Commit Graph

145 Commits

Author SHA1 Message Date
Dave Halter 870abe73d4 Calling an InstanceElement of an Instance of CompiledObject doesn't raise an error anymore. Yes, it's really that complicated. 2014-07-30 19:49:41 +02:00
Dave Halter 723d1e4631 Nicer usage of py_call within InstanceElement and Python 2.7 compatibility 2014-07-30 17:00:16 +02:00
Dave Halter 7cc35fe0b8 remove a very old function call in FunctionExecution that had no effect 2014-07-30 16:41:02 +02:00
Dave Halter cf63d20988 get rid of the evaluate_generator param 2014-07-30 16:36:27 +02:00
Dave Halter 565cfce2fe Executable -> Executed 2014-07-30 16:00:38 +02:00
Dave Halter 7bd76022bf get rid of the whole is_callable stuff, because now we can just check for hasattr(obj, 'py__call__') 2014-07-30 15:50:47 +02:00
Dave Halter 373ff2c45a fix most issues related to the py__call__ stuff and generalize it. 2014-07-30 15:23:41 +02:00
Dave Halter 1e6a950aec further progress in changing to py__call__ 2014-07-30 14:40:56 +02:00
Dave Halter ccd304bcb7 start switching to a more python similar approach of naming, start by naming execution stuff py__call__ 2014-07-30 14:06:32 +02:00
Dave Halter 196afaacbf always operate on class in super and not on an instance. that's the proper way. 2014-07-30 11:34:27 +02:00
Dave Halter 3c92d175da using super() in actual executed classes wasn't possible. fixes #421 2014-07-30 11:27:27 +02:00
Dave Halter 53671bca84 replace get_super_classes with py_bases 2014-07-30 10:54:39 +02:00
Dave Halter 22e5574a91 Remove some get_defined_names methods, that are not needed anymore. 2014-07-03 12:12:50 +02:00
Dave Halter ea370a083d more consequent usage of scope_names_generator 2014-07-03 11:41:33 +02:00
Dave Halter 13ada3154b replace get_defined_names with scope_names_generator in a lot of places (the cleanup still needs to be done, though). 2014-07-02 16:12:49 +02:00
Dave Halter 8d395a2ef1 scope_names_generator now works with modules perfectly well. 2014-07-02 12:41:16 +02:00
Dave Halter 8d63e6f6e7 somehow temporary solution to enable completion of __file__ 2014-07-01 15:10:32 +02:00
Dave Halter 0d3ea4dfb4 fix a ModuleWrapper with StarImports. Now all modules are wrapped. 2014-06-29 21:04:52 +02:00
Dave Halter 5b7c869323 types also add to completions, also for compiled objects. removed a few lines of code that complicated the process as well. 2014-06-28 12:09:43 +02:00
Dave Halter aba4a16ae3 fix indexing issues for multiple index options 2014-06-27 11:23:46 +02:00
Dave Halter 4238538df4 Add __getattr__ checks with proper inheritance. 2014-06-26 12:56:01 +02:00
Dave Halter 6e82fa31e1 submodules need relative imports not absolute 2014-06-25 11:08:29 +02:00
Dave Halter 44238a9f92 submodules are automatically indexed without actually importing them. fixes #413.
However, this is not a 100% correct Python behavior. Python behavior would be to follow ALL imports in all modules (recursively) and check if the module was imported. However, that's a lot of work, that would slow down autocompletion. For now it's better to have no false positives in flaking and to ignore a few attribute errors.
2014-06-25 01:39:43 +02:00
Dave Halter a373818965 fix function execution mutable list issue 2014-06-16 17:12:27 +02:00
Dave Halter eb1f299444 function repr should only include the decorated function if it actually is one. 2014-06-16 13:06:53 +02:00
Dave Halter e6331f8ac8 fix issues with the previous commits (broken tests) 2014-06-10 01:13:37 +02:00
Dave Halter 1899f16a4a if there's a func listener, stop the execution of a function. This solves the issue of nested *args that were reported as having too many params in static analysis. 2014-05-29 12:15:07 +02:00
Dave Halter 08b48807e9 a (temporary) solution for the __file__ access issues in imported modules, see #408 2014-05-19 01:01:56 +02:00
Dave Halter b6ec589997 refactor general array lookup method get_index_types 2014-05-12 15:23:48 +02:00
Dave Halter 60971245d6 star imports now have their own class, which will be important for AttributeError detection 2014-05-10 16:53:27 +02:00
Dave Halter 23b4a89d1d slices should be ignored in __getitem__ settings (for now) 2014-04-28 18:15:25 +02:00
Dave Halter 240b0c9581 NamePart doesn't have an __eq__ method anymore 2014-04-18 14:36:10 +02:00
Dave Halter 6a40c9b671 remove get_set_vars completely from existance 2014-04-14 12:40:59 +02:00
Dave Halter 058e123879 fix issues with a copy.copy usage for Name 2014-04-13 14:55:07 +02:00
Dave Halter f7e236971b moved the input of get_index_types to a more typical type system 2014-04-04 12:09:46 +02:00
Dave Halter 283a5086f9 use memoize_default instead of strange underscore_decorators in api classes 2014-04-02 10:34:43 +02:00
Dave Halter 305b593f3b create an is_callable method for all representation objects, to determine if something is callable or not 2014-04-02 09:42:15 +02:00
Dave Halter 2dbfe46a5a fix a minor issue with __repr__ for decorators 2014-03-26 16:33:31 +01:00
Dave Halter c71247e9c9 syntastic sugar 2014-03-13 10:39:18 +01:00
Dave Halter 8b176e34f2 clean up decorator mess 2014-03-13 01:51:02 +01:00
Dave Halter ec6d7df950 fix problems with decorators with call signatures, fixes #319 2014-03-13 01:29:32 +01:00
Dave Halter cffdcd2571 correct developer documentation a little bit 2014-03-11 15:38:46 +01:00
Dave Halter f191917555 fixed compild classes inheritance issue, fixes #380 2014-03-11 12:45:29 +01:00
Dave Halter 6c5e91da69 some code - just written for @dbrgn 2014-03-10 23:08:09 +01:00
Dave Halter 62a14f7558 restructure NameFinder.filter_name a little bit 2014-03-10 15:57:01 +01:00
Dave Halter 1eba63760e more change to simplify the statement parser 2014-02-27 16:58:08 +01:00
Dave Halter 2e12eb7861 start with the integration of an Operator class to make way for precedences 2014-02-26 14:44:51 +01:00
Dave Halter 44e16c11e5 fixed docstr problems with unified interfaces 2014-02-26 02:33:18 +01:00
Dave Halter d5aa36cc69 replace propery with safe_property in some evaluate cases. fixes #249 2014-01-15 15:07:06 +01:00
Dave Halter 717c4315df Remove Todos that didn't make sense. 2014-01-13 16:29:30 +01:00