Exemplo n.º 1
0
 def __subclasshook__(cls, C):
     if cls is CodedInterface:
         return check_methods(C, "array", "decode")
     return NotImplemented
Exemplo n.º 2
0
 def __subclasshook__(cls, C):
     if cls is PascInterface:
         return check_methods(C, "header", "data")
     return NotImplemented
Exemplo n.º 3
0
 def __subclasshook__(cls, C):
     if cls is SequenceInterface:
         return check_methods(C, "sequence", "shape", "data")
     return NotImplemented
Exemplo n.º 4
0
 def __subclasshook__(cls, C):
     if cls is InformationSpaceInterface:
         return check_methods(C, "space")
     return NotImplemented
Exemplo n.º 5
0
 def __subclasshook__(cls, C):
     if cls is ArrayInterface:
         return check_methods(C, "array")
     return NotImplemented
Exemplo n.º 6
0
 def __subclasshook__(cls, C):
     if cls is MapperInterface:
         return check_methods(C, "map")
     return NotImplemented
Exemplo n.º 7
0
 def __subclasshook__(cls, C):
     if cls is SequencerInterface:
         return check_methods(C, "flatten")
     return NotImplemented
Exemplo n.º 8
0
 def __subclasshook__(cls, C):
     if cls is Cell:
         return check_methods(C, "coord", "val", "neighbours")
     return NotImplemented
Exemplo n.º 9
0
 def __subclasshook__(cls, C):
     if cls is Direction:
         return check_methods(C, "direction")
     return NotImplemented
Exemplo n.º 10
0
 def __subclasshook__(cls, C):
     if cls is BuilderInterface:
         return check_methods(C, "build_informationspace")
     return NotImplemented
Exemplo n.º 11
0
 def __subclasshook__(cls, C):
     if cls is WriterInterface:
         return check_methods(C, "write")
     return NotImplemented
Exemplo n.º 12
0
 def __subclasshook__(cls, C):
     if cls is PredictorInterface:
         return check_methods(C, "predict", "update")
     return NotImplemented
Exemplo n.º 13
0
 def __subclasshook__(cls, C):
     if cls is SubtractorInterface:
         return check_methods(C, "subtract")
     return NotImplemented
Exemplo n.º 14
0
 def __subclasshook__(cls, C):
     if cls is InformationContextInterface:
         return check_methods(C, "context", "dims")
     return NotImplemented