Skip to content

validate: check for Container in contains() #6421

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

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

bastimeyer
Copy link
Member

Check for collections.abc.Container instances in validate.contains() rather than str objects, so everything that implements __contains__ can be validated as well, like lists, dicts, etc.

Check for `collections.abc.Container` instances in `validate.contains()`
rather than `str` objects, so everything that implements `__contains__`
can be validated as well, like lists, dicts, etc.
@bastimeyer bastimeyer merged commit 638ea0d into streamlink:master Feb 3, 2025
16 checks passed
@bastimeyer bastimeyer deleted the validate/contains branch February 3, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant