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