From 23ba848976709337610f6a6ad170e368bc19cae5 Mon Sep 17 00:00:00 2001 From: Jan Buchar Date: Wed, 18 Sep 2019 11:03:33 +0200 Subject: [PATCH 1/2] Fix resolution of forward declarations --- apistrap/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apistrap/utils.py b/apistrap/utils.py index 70e7254..685a373 100644 --- a/apistrap/utils.py +++ b/apistrap/utils.py @@ -52,6 +52,10 @@ def get_function_perspective_globals(function: Callable) -> Dict[str, Any]: if frame.filename == inspect.getsourcefile(function): globs.update(frame.frame.f_globals) + module = inspect.getmodule(function) + if module: + globs.update(inspect.getmembers(module)) + return globs From b0444c36c17e9bb1227899aa82eb5b3255674645 Mon Sep 17 00:00:00 2001 From: Jan Buchar Date: Wed, 18 Sep 2019 11:51:21 +0200 Subject: [PATCH 2/2] Bump version --- apistrap/__init__.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apistrap/__init__.py b/apistrap/__init__.py index 3e2f46a..d69d16e 100644 --- a/apistrap/__init__.py +++ b/apistrap/__init__.py @@ -1 +1 @@ -__version__ = "0.9.0" +__version__ = "0.9.1" diff --git a/setup.py b/setup.py index 11a4b1a..2eaf38e 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import find_packages, setup setup(name='apistrap', - version='0.9.0', + version='0.9.1', description='Iterait REST API utilities', classifiers=[ 'Development Status :: 4 - Beta',