-
Notifications
You must be signed in to change notification settings - Fork 109
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
Exclude float("inf") from B008 #154
Comments
Yeah I'd accept a fix with that. Should be able to say if function name == float ignore. Please also unittest and comment why this was done for future code visitors. Thanks. |
If there is int() or other type equivalents, we might as well cover them too. |
I can submit a PR, but I have a few questions about implementation:
|
Rigthtio. Let's skip int. I wasn't sure if it made sense.
Hmm - I think it's better to start strict for this edge case. See if anyone else shares a preference. Can always go looser if it makes sense.
Ignore since we can skip int in this PR. Thanks! |
Uhhhhhhhhhhhhhhhhhhhh, this is the Close Issues That Should Be But Aren't police here, PR GH-155 has been merged so yeahhh... hi @cooperlees (and no I don't regret the overcasualiness I'm using) |
Thanks @ichard26 |
Currently, using positive/negative infinity as default values for function arguments will trigger B008, as it thinks we're calling the float() function. Unless there are other ways to specify infinities as literals in Python, I think this behavior should be fixed. Thanks.
The text was updated successfully, but these errors were encountered: