@@ -49,20 +49,25 @@ def _decorated_updates_inspection_data(method, inspection_data_key: InspectionDa
49
49
def wrapper (env : TestStateEnvironment , * args , ** kwargs ):
50
50
method (env , * args , ** kwargs )
51
51
result = to_json_str (env .stack [- 1 ])
52
- env .inspection_data [inspection_data_key .value ] = result # noqa: we know that the here value is a supported inspection data field by design.
52
+ # We know that the enum value used here corresponds to a supported inspection data field by design.
53
+ env .inspection_data [inspection_data_key .value ] = result # noqa
53
54
54
55
return wrapper
55
56
56
57
57
58
def _decorate_state_field (state_field : CommonStateField ) -> None :
58
59
if isinstance (state_field , ExecutionState ):
59
60
state_field ._eval_execution = _decorated_updates_inspection_data (
60
- method = state_field ._eval_execution , # noqa: as part of the decoration we access this protected member.
61
+ # As part of the decoration process, we intentionally access this protected member
62
+ # to facilitate the decorator's functionality.
63
+ method = state_field ._eval_execution , # noqa
61
64
inspection_data_key = InspectionDataKey .RESULT ,
62
65
)
63
66
elif isinstance (state_field , StateChoice ):
64
67
state_field ._eval_body = _decorated_updated_choice_inspection_data (
65
- method = state_field ._eval_body # noqa: as part of the decoration we access this protected member.
68
+ # As part of the decoration process, we intentionally access this protected member
69
+ # to facilitate the decorator's functionality.
70
+ method = state_field ._eval_body # noqa
66
71
)
67
72
68
73
0 commit comments