Skip to content

Don't inherit from both interfaces if one interface inherits from another #8

@nettrino

Description

@nettrino

Given the GraphQL

  interface ResourceEntity {
  ...
  }

  interface CloudResourceEntity implements ResourceEntity {
  ...

  }

   type AWSCloudPlatform implements CloudPlatform & CloudResourceEntity & ResourceEntity {
   ...
  }
@dataclass(kw_only=True)
class AWSCloudPlatform(CloudPlatform, ResourceEntity, CloudResourceEntity):
  ...

whereas the right code to be emitted is

@dataclass(kw_only=True)
class AWSCloudPlatform(CloudPlatform, CloudResourceEntity):
  ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions