Skip to content

Typing: Allow any iterable types, not just lists in extensions.py #1439

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anjaist
Copy link

@anjaist anjaist commented Jul 24, 2025

Previously, the typing in extensions was using List as the default iterable. In some cases, it might be beneficial to use non-mutable types, which is currently not matching the strict List type.

This change uses Iterable type instead so that mutable or non-mutable types alike can be used.

Previously, the typing in extensions was using List as the default iterable.
In some cases, it might be beneficial to use non-mutable types, which is currently
not matching the strict List type.

This change uses Iterable type instead so that mutable or non-mutable types alike
can be used.
@anjaist anjaist force-pushed the improve-extensions-typing branch from bd01baa to 375089a Compare July 24, 2025 09:54
@anjaist anjaist marked this pull request as ready for review July 24, 2025 09:55
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.

1 participant