Providing type information to mixin classes #119
Labels
addressed in next version
Issue is fixed and will appear in next published version
enhancement request
New feature or request
I don't know if this is a bug, but we should be able to provide type information to mixin classes.
I'm using a
_Base
class to provide type info to the static type checker.This technique is not elegant but solves all typing problems within the class, but on Pyright (mypy does not complain) it rises another error showed on the screenshot below.
An example of a Django Serializer Mixin
The error:
If this is not the best approach, can you help me find a solution to provide type info?
The text was updated successfully, but these errors were encountered: