示例#1
0
 def __subclasshook__(cls, C):
     if cls is PredictorInterface:
         return check_methods(C, "predict", "update")
     return NotImplemented
示例#2
0
 def __subclasshook__(cls, C):
     if cls is MapperInterface:
         return check_methods(C, "map")
     return NotImplemented
示例#3
0
 def __subclasshook__(cls, C):
     if cls is ArrayInterface:
         return check_methods(C, "array")
     return NotImplemented
示例#4
0
 def __subclasshook__(cls, C):
     if cls is EncoderInterface:
         return check_methods(C, "encode", "decode")
     return NotImplemented
示例#5
0
 def __subclasshook__(cls, C):
     if cls is SubtractorInterface:
         return check_methods(C, "subtract")
     return NotImplemented
示例#6
0
 def __subclasshook__(cls, C):
     if cls is SequencerInterface:
         return check_methods(C, "flatten")
     return NotImplemented