Skip to content

Commit ed631c8

Browse files
committed
fix: add missing Rate return types
1 parent a765612 commit ed631c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easypost/util.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_lowest_object_rate(
3333
carriers: Optional[List[str]] = None,
3434
services: Optional[List[str]] = None,
3535
rates_key: str = "rates",
36-
):
36+
) -> Rate:
3737
"""Gets the lowest rate of an EasyPost object such as a Shipment, Order, or Pickup."""
3838
carriers = carriers or []
3939
services = services or []
@@ -55,7 +55,7 @@ def get_lowest_object_rate(
5555
return lowest_rate
5656

5757

58-
def get_lowest_smart_rate(smart_rates: List[Rate], delivery_days: int, delivery_accuracy: str):
58+
def get_lowest_smart_rate(smart_rates: List[Rate], delivery_days: int, delivery_accuracy: str) -> Rate:
5959
"""Get the lowest SmartRate from a list of SmartRates."""
6060
valid_delivery_accuracy_values = {
6161
"percentile_50",

0 commit comments

Comments
 (0)