stravalib.client.Client._validate_activity_type#

Client._validate_activity_type(params: dict[str, Any], activity_type: str | None, sport_type: str | None) dict[str, Any][source]#

Validate activity type and sport type values.

Parameters:
Returns:

Dictionary containing overlapping parameter values between the two methods

Return type:

dict

Raises:

ValueError – If the activity_type or sport_type is invalid.