Skip to content

Added get_playlist_or_raise method to library base class.#67

Merged
semohr merged 3 commits intomainfrom
get_playlist_or_raise
Mar 13, 2026
Merged

Added get_playlist_or_raise method to library base class.#67
semohr merged 3 commits intomainfrom
get_playlist_or_raise

Conversation

@pSpitzner
Copy link
Copy Markdown
Contributor

I considered adding them on service-level, to get the typing overloads. but this was a lot of code duplication (I would even consider to drop it for the get_playlist method, since we now have consistent return types for all overloads)

Also removed the override decorator on get_playlist, because its an abstractmethod in the parent class.

@pSpitzner pSpitzner temporarily deployed to integration_tests March 13, 2026 16:07 — with GitHub Actions Inactive
@pSpitzner pSpitzner temporarily deployed to integration_tests March 13, 2026 16:07 — with GitHub Actions Inactive
@github-actions
Copy link
Copy Markdown

Thank you for the PR! The changelog has not been updated, so here is a friendly reminder to check if you need to add an entry.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 13, 2026

The author of this PR, pSpitzner, is not an activated member of this organization on Codecov.
Please activate this user on Codecov to display this PR comment.
Coverage data is still being uploaded to Codecov.io for purposes of overall coverage calculations.
Please don't hesitate to email us at support@codecov.io with any questions.

I considered adding them on service-level, to get the typing overloads. but this
was a lot of code duplication (I would even consider to drop it for the get_playlist
method, since we now have consistent return types for all overloads)

Also removed the override decorator on get_playlist, because its an abstractmethod
in the parent class.
@pSpitzner pSpitzner force-pushed the get_playlist_or_raise branch from 831fe42 to 54fae96 Compare March 13, 2026 16:09
@pSpitzner pSpitzner temporarily deployed to integration_tests March 13, 2026 16:09 — with GitHub Actions Inactive
@pSpitzner pSpitzner temporarily deployed to integration_tests March 13, 2026 16:09 — with GitHub Actions Inactive
@pSpitzner pSpitzner temporarily deployed to integration_tests March 13, 2026 16:28 — with GitHub Actions Inactive
@pSpitzner pSpitzner temporarily deployed to integration_tests March 13, 2026 16:28 — with GitHub Actions Inactive
@pSpitzner
Copy link
Copy Markdown
Contributor Author

pSpitzner commented Mar 13, 2026

Had to cherry pick some other tweaks from #46 hopefully we dont get too many conflicts when rebasing

Mypy issues are from the examples, fixed in the other PR

@semohr semohr temporarily deployed to integration_tests March 13, 2026 16:32 — with GitHub Actions Inactive
@semohr semohr temporarily deployed to integration_tests March 13, 2026 16:32 — with GitHub Actions Inactive
@semohr semohr merged commit f28de4d into main Mar 13, 2026
11 of 12 checks passed
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