a (temporary) solution for the __file__ access issues in imported modules, see #408
This commit is contained in:
1 parent
709c53a679
commit
08b48807e9
5 files changed
+41
-4
No files matched your search
@@ -206,6 +206,8 @@ class NameFinder(object):
|
||||
typ = er.Class(evaluator, typ)
|
||||
elif isinstance(typ, pr.Function):
|
||||
typ = er.Function(evaluator, typ)
|
||||
elif isinstance(typ, pr.Module):
|
||||
typ = er.ModuleWrapper(evaluator, typ)
|
||||
if typ.isinstance(er.Function) and resolve_decorator:
|
||||
typ = typ.get_decorated_func()
|
||||
types.append(typ)
|
||||
|
||||
Reference in new issue
Block a user