Skip to content

Conversation

@rhettinger
Copy link
Contributor

This a reasonably common error, so improve the error message to make it more obvious what the problem is and how to fix it:

TypeError: The number of choices must be a keyword argument: k=10

@miss-islington
Copy link
Contributor

Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 20, 2021
(cherry picked from commit 2a36b09)

Co-authored-by: Raymond Hettinger <[email protected]>
@bedevere-bot
Copy link

GH-25477 is a backport of this pull request to the 3.9 branch.

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.

4 participants