Skip to content

Commit

Permalink
issue-31
Browse files Browse the repository at this point in the history
fix #31
  • Loading branch information
ettoreleandrotognoli authored Oct 5, 2019
1 parent eae3490 commit ca847f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pycdi/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def clear(self):


def resolve_forward_reference(reference_name, scope):
if not hasattr(scope, '__globals__' ):
scope = scope.__init__
return eval(reference_name, scope.__globals__, scope.__globals__)


Expand Down

0 comments on commit ca847f9

Please sign in to comment.