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

feat: support abstract collections #532

Merged

Conversation

PJCampi
Copy link
Contributor

@PJCampi PJCampi commented May 23, 2024

Typing with abstract collections rather than concrete implementations typically make for a looser and contract based API.
This PR implements decoding to an abstract collections by selecting an implementation that conforms to the abstraction.

@PJCampi PJCampi force-pushed the feat-support-abstract-collections branch from 4c6ab39 to 7e19a59 Compare May 23, 2024 16:19
@PJCampi
Copy link
Contributor Author

PJCampi commented Jun 3, 2024

Hey @george-zubrienko,
I am wondering whether you would have a few minutes at some point to have a look this tiny PR? It would be super helpful.
Thanks!

@george-zubrienko
Copy link
Collaborator

Hey @PJCampi! I'll do it in the evening today - thanks a lot for keeping things in check!

Copy link
Collaborator

@george-zubrienko george-zubrienko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, minor style comment - will auto-approve once you commit :)

dataclasses_json/core.py Outdated Show resolved Hide resolved
@PJCampi PJCampi force-pushed the feat-support-abstract-collections branch from 5927478 to 2d0cd4f Compare June 5, 2024 16:46
@george-zubrienko george-zubrienko merged commit 538ff15 into lidatong:master Jun 5, 2024
9 checks passed
@george-zubrienko
Copy link
Collaborator

@PJCampi released in 0.6.7

renovate bot referenced this pull request in ixm-one/pytest-cmake-presets Jun 9, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [dataclasses-json](https://togithub.com/lidatong/dataclasses-json)
([changelog](https://togithub.com/lidatong/dataclasses-json/releases)) |
`0.6.6` -> `0.6.7` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/dataclasses-json/0.6.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/dataclasses-json/0.6.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/dataclasses-json/0.6.6/0.6.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/dataclasses-json/0.6.6/0.6.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>lidatong/dataclasses-json (dataclasses-json)</summary>

###
[`v0.6.7`](https://togithub.com/lidatong/dataclasses-json/releases/tag/v0.6.7)

[Compare
Source](https://togithub.com/lidatong/dataclasses-json/compare/v0.6.6...v0.6.7)

#### What's Changed

- feat: support abstract collections by
[@&#8203;PJCampi](https://togithub.com/PJCampi) in
[https://github.com/lidatong/dataclasses-json/pull/532](https://togithub.com/lidatong/dataclasses-json/pull/532)
- Warn about buggy type resolution by
[@&#8203;DavidCain](https://togithub.com/DavidCain) in
[https://github.com/lidatong/dataclasses-json/pull/529](https://togithub.com/lidatong/dataclasses-json/pull/529)

#### New Contributors

- [@&#8203;DavidCain](https://togithub.com/DavidCain) made their first
contribution in
[https://github.com/lidatong/dataclasses-json/pull/529](https://togithub.com/lidatong/dataclasses-json/pull/529)

**Full Changelog**:
lidatong/dataclasses-json@v0.6.6...v0.6.7

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ixm-one/pytest-cmake-presets).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZTpkZXBlbmRlbmNpZXMiXX0=-->

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

2 participants