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
I wasn't able to figure out why this isn't working. The class seems to be fully-annotated and there's an empty py.typed file in the root, so typechecking should work. All of the examples I found of this not working didn't apply to our case.
This errors because of disallow-subclassing-any, and for some reason, classes extending Task think it has type Any.
I have code like:
That returns this error from mypy:
The fix is to add:
However, it would be nice if stactask provided the correct type information so that this was not necessary.
Description of this general issue is here: https://stackoverflow.com/questions/49888155/class-cannot-subclass-qobject-has-type-any-using-mypy
The text was updated successfully, but these errors were encountered: