Skip to content

Commit

Permalink
rm init in schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
mfleader committed Apr 29, 2024
1 parent 58de059 commit 62be019
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions src/arcaflow_plugin_sdk/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -2809,22 +2809,6 @@ class OneOfStringSchema(OneOfSchema):
"_discriminated_string_"
)

def __init__(
self,
types: Dict[
str, typing.Annotated[_OBJECT_LIKE, discriminator("type_id")]
],
discriminator_inlined: bool,
discriminator_field_name: str = None,
oneof_type: str = None,
):
super().__init__(
types=types,
discriminator_inlined=discriminator_inlined,
discriminator_field_name=discriminator_field_name,
oneof_type=self.oneof_type,
)


@dataclass
class OneOfIntSchema(OneOfSchema):
Expand Down Expand Up @@ -2937,22 +2921,6 @@ class OneOfIntSchema(OneOfSchema):
"_discriminated_int_"
)

def __init__(
self,
types: Dict[
int, typing.Annotated[_OBJECT_LIKE, discriminator("type_id")]
],
discriminator_inlined: bool,
discriminator_field_name: str = None,
oneof_type: str = None,
):
super().__init__(
types=types,
discriminator_inlined=discriminator_inlined,
discriminator_field_name=discriminator_field_name,
oneof_type=self.oneof_type,
)


@dataclass
class RefSchema(_JSONSchemaGenerator, _OpenAPIGenerator):
Expand Down

0 comments on commit 62be019

Please sign in to comment.