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

util.todict process DefaultInt to a dictionary instead of a int #215

Open
niander opened this issue Jul 1, 2020 · 1 comment
Open

util.todict process DefaultInt to a dictionary instead of a int #215

niander opened this issue Jul 1, 2020 · 1 comment

Comments

@niander
Copy link
Member

niander commented Jul 1, 2020

Not sure if this is a bug, or expected behavior.
When executing the example exapp

> knack_test.py hello world
Are you sure you want to perform this operation? (y/n): y
[
  "hello",
  "world",
  {
    "isDefault": true
  },
  null
]

Here the argument myarg is returned and during the processing of the command return. Then, util.todict is used to process it and since the real type of myarg is DefaultInt the int default value of 100 is not printed in the screen but instead the dictionary { "isDefault": true }, which comes from myarg.__dict__

@niander niander changed the title utils.todict process DefaultInt to a dictionary instead of a int util.todict process DefaultInt to a dictionary instead of a int Jul 1, 2020
@niander
Copy link
Member Author

niander commented Aug 19, 2021

ping

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