Skip to content

Commit

Permalink
Update type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
jimchamp committed Dec 9, 2024
1 parent 1c17c70 commit 4678c5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openlibrary/plugins/upstream/addtag.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def validate_subject_tag(tag):
return tag.get('name', '') and tag.get('tag_type', '') in get_subject_tag_types() and tag.get('body')


def create_tag(tag: dict) -> Tag:
def create_tag(tag: dict):
if not validate_tag(tag):
raise ValueError("Invalid data for tag creation")

Expand All @@ -51,7 +51,7 @@ def create_tag(tag: dict) -> Tag:
return tag


def create_subject_tag(tag: dict) -> Tag:
def create_subject_tag(tag: dict):
if not validate_subject_tag(tag):
raise ValueError("Invalid data for subject tag creation")

Expand Down

0 comments on commit 4678c5b

Please sign in to comment.