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

TypeError: launch() got an unexpected keyword argument 'default' in 2.2.0 #67

Closed
pzelnip opened this issue Aug 27, 2020 · 1 comment
Closed

Comments

@pzelnip
Copy link

pzelnip commented Aug 27, 2020

As of 2.2.0 I get: TypeError: launch() got an unexpected keyword argument 'default'. Example:

Python 3.8.2 (default, May 15 2020, 15:39:20) 
[Clang 9.0.0 (clang-900.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from bullet import Bullet, YesNo, colors
>>> 
>>> to_quit = YesNo("Ok to proceed? ").launch(default="n")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: launch() got an unexpected keyword argument 'default'

This works fine in 2.1.0. Is the default keyword arg now no longer supported?

I'm a bit puzzled too as the default kwarg is in the source: https://github.com/bchao1/bullet/blob/master/bullet/client.py#L371

@pzelnip
Copy link
Author

pzelnip commented Aug 27, 2020

Ahh, figured it out, the arg got moved from the launch() method to the constructor. Fixed with:

to_quit = YesNo("Ok to proceed? ", default="n").launch()

Closing this issue.

@pzelnip pzelnip closed this as completed Aug 27, 2020
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

No branches or pull requests

1 participant