mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 11:36:56 +08:00
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']
This commit is contained in:
@@ -158,7 +158,7 @@ class StepData(BaseModel):
|
|||||||
|
|
||||||
success: bool = False
|
success: bool = False
|
||||||
name: Text = "" # teststep name
|
name: Text = "" # teststep name
|
||||||
data: Union[SessionData, List[SessionData]] = None
|
data: Union[SessionData, List['StepData']] = None
|
||||||
export_vars: VariablesMapping = {}
|
export_vars: VariablesMapping = {}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user