From dd6b82425a6454568615ef306c9755354c770986 Mon Sep 17 00:00:00 2001 From: xucong053 <43516634+xucong053@users.noreply.github.com> Date: Wed, 14 Jul 2021 21:36:44 +0800 Subject: [PATCH] fix #1059: data type hint correction reference runner.py: step_data.data = case_result.get_step_datas() # list of step data change: List[SessionData] --> List['StepData'] --- httprunner/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httprunner/models.py b/httprunner/models.py index c4b60955..c35886c0 100644 --- a/httprunner/models.py +++ b/httprunner/models.py @@ -158,7 +158,7 @@ class StepData(BaseModel): success: bool = False name: Text = "" # teststep name - data: Union[SessionData, List[SessionData]] = None + data: Union[SessionData, List['StepData']] = None export_vars: VariablesMapping = {}