Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal committed Sep 4, 2023
1 parent a91413d commit c21d66a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ExtractOwnersFromTagsConfig(TransformerSemanticsConfigModel):
def get_owner_type(owner_type_str: str) -> Optional[OwnershipTypeClass]:
for item in dir(OwnershipTypeClass):
if str(item) == owner_type_str:
return item
return getattr(OwnershipTypeClass, item)
return OwnershipTypeClass.CUSTOM


Expand All @@ -46,7 +46,7 @@ def __init__(self, config: ExtractOwnersFromTagsConfig, ctx: PipelineContext):
@classmethod
def create(
cls, config_dict: dict, ctx: PipelineContext
) -> "ExtractOwnersFromTagsConfig":
) -> "ExtractOwnersFromTagsTransformer":
config = ExtractOwnersFromTagsConfig.parse_obj(config_dict)
return cls(config, ctx)

Expand Down

0 comments on commit c21d66a

Please sign in to comment.