Open goerz opened 6 years ago
I think Lint doesn't understand return type annotations. I had a (slightly stale) PR addressing that, but it's not quite done.
As for the lines, I think that might be partially a limitation of how we are parsing the code to lint. Eventually we want to migrate to a multi-layer linter starting at the CST layer, but there is a lot of work to be done to get there, and recently this package has gone somewhat undermaintained.
The line numbers reported by the linter consistenly seem off by one, For example, when I do
it reports things like
when
new_basis
is in fact used in line 229. The same is true for all other messages.Actually, I also don't understand what Lint is complaining about in regards to
new_basis
, as it is an argument to the funtion that contains line 229:I wonder if it's being thrown off by the docstring, because it also says
about the line that starts the docstring.