You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LGTM complains about Call to a non-callable of class CLS.
In my case, CLS refers to the class and the call should thus create a new instance. I guess the problem in my case is that I needed to add an additional decorator besides the @classmethod to mark the method as a classmethod; see code:
Thanks for the report! 👍 The problem in your specific case is that from_storage is also decorated with fill_in_docstring, and our analysis is quite conservative when seeing decorators it doesn't know about (since they can do anything).
I've added a boiled-down version of your problem to our tests in #3114, and created an internal tracking ticket for this. But I can't make any promises that fixing this will be a priority
Yes, I agree that the extra decorator complicates the automatic analysis, but I felt it is a reasonable use-case of decorates. Is there any way to make the algorithm aware of the decorator? After all, this is a trivial one, which only changes the doctoring.
LGTM complains about
Call to a non-callable of class CLS
.In my case, CLS refers to the class and the call should thus create a new instance. I guess the problem in my case is that I needed to add an additional decorator besides the @classmethod to mark the method as a classmethod; see code:
https://lgtm.com/projects/g/zwicker-group/py-pde/snapshot/b591dace7b765362f97b4435a99a1ec95787a504/files/pde/visualization/plotting.py?sort=name&dir=ASC&mode=heatmap#x3c4edeb8f4dc0a46:1
The text was updated successfully, but these errors were encountered: