Description
The problem
Wrong typehints
The docstring for end_time
in the following sections seems to be wrong, it should be in float
but docstring says int
aws-xray-sdk-python/aws_xray_sdk/core/models/entity.py
Lines 62 to 76 in 692a439
aws-xray-sdk-python/aws_xray_sdk/core/models/subsegment.py
Lines 130 to 140 in 692a439
aws-xray-sdk-python/aws_xray_sdk/core/context.py
Lines 43 to 57 in 692a439
aws-xray-sdk-python/aws_xray_sdk/core/context.py
Lines 73 to 88 in 692a439
Correct typehints (on top of wrong ones)
And you can find the following code calling the function above using the correct type hint float
aws-xray-sdk-python/aws_xray_sdk/core/recorder.py
Lines 342 to 347 in 692a439
aws-xray-sdk-python/aws_xray_sdk/core/recorder.py
Lines 247 to 254 in 692a439
Fix
Verify this issue and Change typehint for end_time
in Wrong typehints section from int
to float