Exemplo n.º 1
0
 def __init__(self,
              integer_example: int,
              string_example: str,
              list_of_strings: typehints.List[str],
              optional_kv: typehints.Optional[typehints.KV[
                  str, float]] = None,
              optional_integer: typehints.Optional[int] = None,
              expansion_service=None):
     super(AnnotatedTransform, self).__init__(
         self.URN,
         AnnotationBasedPayloadBuilder(
             self,
             integer_example=integer_example,
             string_example=string_example,
             list_of_strings=list_of_strings,
             optional_kv=optional_kv,
             optional_integer=optional_integer,
         ), expansion_service)
Exemplo n.º 2
0
 def __init__(self,
              integer_example: int,
              boolean: bool,
              string_example: str,
              list_of_strings: typehints.List[str],
              mapping: typehints.Dict[str, float],
              optional_integer: typehints.Optional[int] = None,
              expansion_service=None):
     super(AnnotatedTransform, self).__init__(
         self.URN,
         AnnotationBasedPayloadBuilder(
             self,
             integer_example=integer_example,
             boolean=boolean,
             string_example=string_example,
             list_of_strings=list_of_strings,
             mapping=mapping,
             optional_integer=optional_integer,
         ), expansion_service)