Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add Any Expressions report #3492
This report measures the number of expressions in a file that have type Any.
This is what the report looks like:
@gvanrossum yes, done!
That was code that was already there, so I didn't touch it. But it would be useful to have that, I agree.
Here is what the output looks like now:
Code-wise this looks good (with just a couple small questions around some magic formatting numbers), but I'm not sure it does what it says on the tin: it looks to me like this gives the percentage of lines that contain
Any. This may be reasonable behavior, but the name would need to be changed.
Also, it doesn't have to happen in this PR, but further investigation is needed into the
cycle in function expansion errors. Optimally, we'd understand the root cause and fix it.
@ddfisher Thanks for the review!
The new reporter reports types, not lines. It uses