-
Notifications
You must be signed in to change notification settings - Fork 11
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
Bug with interactive.accepts()
#39
Comments
Just to provide a solution, rewriting the
Seems to resolve the bug for me. I see this method defined here and would be happy to push a PR modifying but I'm not familiar with how this library works, so lmk if you'd like help how best to help you. |
If you submit a PR with a validating test, I will merge it in. If your offer of help extends beyond this PR, there are plenty of other tasks that need doing :) |
Tests pass, but I don't see any tests around I can look into adding new tests for this, though if so I'll focus on this specific use case (since I'm not very familiar with the existing functionality set).
Maybe! Let's start here and see how it goes :D |
Sure, if you can, just add a test for this specific case. Thanks! |
Test added. |
I believe there is a bug with the
accepts()
method when usinginteractive
.I set up a repo here demonstrating the issue.
This is the error:
I believe what is happening is that
accepts
is attempting to iterate with anof
statement here, but it gets back an object fromchoices()
which cannot be iterated over withof
(it could be iterated over within
, which would return the object's keys).The text was updated successfully, but these errors were encountered: