djangorestframework-stubs icon indicating copy to clipboard operation
djangorestframework-stubs copied to clipboard

fix(relations): remove some typevars in favor of Any

Open Linkid opened this issue 9 months ago • 1 comments

I have made things!

RelatedField subclasses can avoid dealing with data type and model type TypeVars override, as they are not specific.

This should fix the "Need type annotation for" that mypy raises for all related field subclasses.

Related issues

Ref #168

Linkid avatar May 07 '24 14:05 Linkid

Hello. I've forgotten some methods. This should be fixed in the latest commit.

Linkid avatar May 07 '24 15:05 Linkid