forked from VimPlug/jedi
little edge case of modules that don't have a scope_names_generator, which is unfortunately missing, but not really used in Jedi.
At europython's hackathon we played with it and @scoder added a small script to cython/Cython/Compiler/JediTyper.py, which makes it possible to add Cython types to a Python script.
This commit is contained in:
@@ -396,6 +396,9 @@ class Module(IsScope):
|
||||
For isinstance checks. fast_parser.Module also inherits from this.
|
||||
"""
|
||||
|
||||
def scope_names_generator(self, position=None):
|
||||
yield self, filter_after_position(self.get_defined_names(), position)
|
||||
|
||||
|
||||
class SubModule(Scope, Module):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user