-
-
Notifications
You must be signed in to change notification settings - Fork 57
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: unsupported operand type(s) for +: 'int' and 'dict' #73
Comments
each of the operators have a sum method, which should be initialised to 0. the final line (causing the error) is compiling the values together. It should be getting an int from radon, but there have been some new releases of radon, so I wonder if this has changed the API. |
please can you run |
Hope that helps! |
Hello, I stumbled upon the same bug recently and after some debugging I found a simple yet critical bug: file metric aggregates and object metrics are mangled in the results dictionary if the file happens to include objects that have the same name as the metrics (e.g. a function called Specifically, this happens in the I came up with a simple solution which is to add an extra level in the results dict for detailed and total metrics, i.e.:
|
@alegonz a PR would be amazing, I've struggled to reproduce this effectively to narrow down the issue but it sounds like you have |
Fixed in 1.12.4. Users may need to update their cache, but wily gives this warning automatically |
I attempted to run
wily build nengo/
on the master branch of https://github.com/nengo/nengo and I get the following error:This is a little puzzling since the line that it's pointing to doesn't contain an addition statement, as far as I can tell.
This was run in a Python 3.7 virtual environment with wily version 1.12.2. Let me know if I can provide any more information to help with debugging.
The text was updated successfully, but these errors were encountered: