diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | astroid/raw_building.py | 5 |
2 files changed, 7 insertions, 0 deletions
@@ -192,6 +192,8 @@ Release Date: TBA Close #755 +* Properly analyze CFFI compiled extensions. + What's New in astroid 2.3.2? ============================ Release Date: TBA diff --git a/astroid/raw_building.py b/astroid/raw_building.py index d94f9240..c852485e 100644 --- a/astroid/raw_building.py +++ b/astroid/raw_building.py @@ -354,6 +354,11 @@ class InspectBuilder: # This should be called for Jython, where some builtin # methods aren't caught by isbuiltin branch. _build_from_function(node, name, member, self._module) + elif hasattr(member, '__all__'): + module = build_module(name) + _attach_local_node(node, module, name) + # recursion + self.object_build(module, member) else: # create an empty node so that the name is actually defined attach_dummy_node(node, name, member) |