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

Loosen typing requirements of init params, to allow tuples, sets, etc. of strings #29

Open
bskinn opened this issue Nov 11, 2018 · 0 comments

Comments

@bskinn
Copy link
Owner

bskinn commented Nov 11, 2018

Just needs to be an iterable collection of strings, I think. Shouldn't specifically need the ordering or mutability of the list. Can't really picture a case where one would pass a dict, but who knows..?

Could then change the validator just to issubclass(type(arg), collections.Iterable), instead of an explicit type(arg) == list check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant