Skip to content

Commit a05348b

Browse files
committed
fix get_rate_estimate return type
1 parent c289eb7 commit a05348b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

shipengine/shipengine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def create_label_from_shipment(
6464

6565
def get_rate_estimate(
6666
self, params: Dict[str, Any], config: Union[str, Dict[str, Any]] = None
67-
) -> Dict[str, Any]:
67+
) -> list[Dict[str, Any]]:
6868
"""
6969
Get a rate estimate for a shipment given a minimal set of shipment details.
7070
Unlike get_rates_from_shipment, this endpoint does not require a full shipment object.
@@ -75,7 +75,7 @@ def get_rate_estimate(
7575
origin/destination postal codes and country codes, and package weight.
7676
:param Union[str, Dict[str, Any], ShipEngineConfig] config: Method level configuration to set new values
7777
for properties of the global ShipEngineConfig object.
78-
:returns Dict[str, Any]: A list of rate estimates from the specified carriers.
78+
:returns list[Dict[str, Any]]: A list of rate estimates from the specified carriers.
7979
"""
8080
config = self.config.merge(new_config=config)
8181
return self.client.post(

0 commit comments

Comments
 (0)