matin / garth

Garmin SSO auth + Connect Python client
MIT License
305 stars 22 forks source link

Support Pydantic 1 #15

Closed matin closed 1 year ago

matin commented 1 year ago

Support backwards compatibility with Pydantic 1. Tested on Pydantic 1.10.13.

Closes https://github.com/matin/garth/issues/14 and https://github.com/cyberjunky/python-garminconnect/issues/162

codecov[bot] commented 1 year ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (2a0dae9) 100.00% compared to head (15b78d2) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #15 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 29 29 Lines 1013 1013 ========================================= Hits 1013 1013 ``` | [Flag](https://app.codecov.io/gh/matin/garth/pull/15/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matin+Tamizi) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/matin/garth/pull/15/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matin+Tamizi) | `100.00% <100.00%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matin+Tamizi#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/matin/garth/pull/15?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matin+Tamizi) | Coverage Δ | | |---|---|---| | [garth/version.py](https://app.codecov.io/gh/matin/garth/pull/15?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matin+Tamizi#diff-Z2FydGgvdmVyc2lvbi5weQ==) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.