From 234b58758443e2a908b1b790f938764303c6ac6e Mon Sep 17 00:00:00 2001 From: xucong053 <43516634+xucong053@users.noreply.github.com> Date: Fri, 16 Jul 2021 13:56:23 +0800 Subject: [PATCH] fix: add class self-reference for variable annotations --- httprunner/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/httprunner/models.py b/httprunner/models.py index c35886c0..e149e407 100644 --- a/httprunner/models.py +++ b/httprunner/models.py @@ -161,6 +161,9 @@ class StepData(BaseModel): data: Union[SessionData, List['StepData']] = None export_vars: VariablesMapping = {} + +StepData.update_forward_refs() + class TestCaseSummary(BaseModel): name: Text