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

Check for dataclass instances before encoding as JSON, upgrade mypy to 1.11.0 #150

Merged
merged 3 commits into from
Jul 22, 2024

Conversation

brews
Copy link
Owner

@brews brews commented Jul 22, 2024

Fixes edge bug in how data is encoded to JSON for write_params(). This was found in PR #149, when mypy got bumped to v1.11.0, so we're updating that dependency here.

brews added 2 commits July 22, 2024 14:27
Found after checking code against Mypy v1.11.0.

Ensurings json is encoding correctly applies to Dataclass instances to asdict(), excluding Dataclass types themselves.
This applies the change that was originally in PR #149, where this bug was first found.
@brews brews added the bug Something isn't working label Jul 22, 2024
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.02%. Comparing base (596ce58) to head (ed32031).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #150   +/-   ##
=======================================
  Coverage   86.02%   86.02%           
=======================================
  Files           5        5           
  Lines          93       93           
=======================================
  Hits           80       80           
  Misses         13       13           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@brews brews merged commit f82b818 into main Jul 22, 2024
5 checks passed
@brews brews deleted the asdict_mypy_fix branch July 22, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant