Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Summary activities #504

Closed
wants to merge 26 commits into from
Closed

Summary activities #504

wants to merge 26 commits into from

Conversation

jsamoocha
Copy link
Collaborator

This is a tiny PR to show how making the Strava type hierarchy explicit in our client responses can improve type-checking accuracy and prevent user confusion (see #494).

This approach can be used to resolve #499.

jsamoocha and others added 26 commits May 5, 2024 18:14
Fix: upgrade 2.x

Fix: things are starting to work
Update src/stravalib/client.py
Remove: enum functions from stravalib

Fix: tests broken because of removed  mixin
Co-authored-by: Jonatan Samoocha <jsamoocha@yahoo.com>
Co-authored-by: Jonatan Samoocha <jsamoocha@yahoo.com>
Co-authored-by: Jonatan Samoocha <jsamoocha@yahoo.com>
Co-authored-by: Jonatan Samoocha <jsamoocha@yahoo.com>
Co-authored-by: Jonatan Samoocha <jsamoocha@yahoo.com>
Co-authored-by: Jonatan Samoocha <jsamoocha@yahoo.com>
Co-authored-by: Jonatan Samoocha <jsamoocha@yahoo.com>
Co-authored-by: Jonatan Samoocha <jsamoocha@yahoo.com>
Co-authored-by: Jonatan Samoocha <jsamoocha@yahoo.com>
Co-authored-by: Jonatan Samoocha <jsamoocha@yahoo.com>
* Removes BackwardCompatibilityMixin and related _field_conversions attributes

* Fixes typing issues
This should prevent confusion for users about the detail level
of an API response object and improve static type checking accuracy.
@jsamoocha jsamoocha closed this May 12, 2024
@jsamoocha jsamoocha deleted the summary-activities branch May 13, 2024 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stravalib2.0 -> Maintain Strava's meta-summary-detailed type hierarchy
2 participants