trait Mixin {
class P
}
abstract class SuperClass[T]
class Impl extends SuperClass[P] with Mixin
的类成员参数化超级类得到: not found: type P
是否有任何方式来提供构件类P其混合在作为参数传递给一个超类,或这是不可能因为评估的顺序(或其他一些问题?)。
我的代码有两个mixin,BasicAuthMixin和JWTAuthMixin如下所述。姑且认为self.authenticate方法返回真并不会引发任何异常: from django.http import JsonResponse
from django.utils.decorators import method_decorator
from django.views.decorato