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

The type hint of the parameter r of EntropyHub._FuzzEn.FuzzEn is confusing. #1

Closed
rexjz opened this issue Dec 9, 2022 · 2 comments
Closed

Comments

@rexjz
Copy link

rexjz commented Dec 9, 2022

image
If pass a tuple as parameter r, the type hint of the second element is int, but it should be float.
This is because the type hint is inferred from the default value of r.
definition of EntropyHub._FuzzEn.FuzzEn:
image

@rexjz rexjz changed the title FuzzEn'S The type hint of the parameter r of EntropyHub._FuzzEn.FuzzEn is confusing. Dec 9, 2022
@MattWillFlood
Copy link
Owner

Hi @rexjz
Thank you so much for bringing this to my attention.
I will update this hint and the description in the user guide as soon as I can.
Just to be clear, the code still runs whether you enter a float or int :)
Thanks again!
M

@MattWillFlood
Copy link
Owner

This has been fixed in the latest release (v1.0) :)

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

2 participants