File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 7
7
Dict ,
8
8
List ,
9
9
Optional ,
10
+ Union ,
10
11
)
11
12
12
13
from easypost .constant import (
24
25
InvalidParameterError ,
25
26
SignatureVerificationError ,
26
27
)
28
+ from easypost .models .rate import Rate
27
29
28
30
29
31
def get_lowest_object_rate (
30
- easypost_object : EasyPostObject ,
32
+ easypost_object : Union [ EasyPostObject , Dict [ str , Any ]] ,
31
33
carriers : Optional [List [str ]] = None ,
32
34
services : Optional [List [str ]] = None ,
33
35
rates_key : str = "rates" ,
@@ -53,7 +55,7 @@ def get_lowest_object_rate(
53
55
return lowest_rate
54
56
55
57
56
- def get_lowest_smart_rate (smart_rates , delivery_days : int , delivery_accuracy : str ):
58
+ def get_lowest_smart_rate (smart_rates : List [ Rate ] , delivery_days : int , delivery_accuracy : str ):
57
59
"""Get the lowest SmartRate from a list of SmartRates."""
58
60
valid_delivery_accuracy_values = {
59
61
"percentile_50" ,
You can’t perform that action at this time.
0 commit comments