From 4678c5b8abf5171113e9a865b7fe0c4e58797ea7 Mon Sep 17 00:00:00 2001 From: jachamp <28732543+jimchamp@users.noreply.github.com> Date: Mon, 9 Dec 2024 10:54:38 -0800 Subject: [PATCH] Update type hints --- openlibrary/plugins/upstream/addtag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openlibrary/plugins/upstream/addtag.py b/openlibrary/plugins/upstream/addtag.py index d9b3289c584..7f6e2fc30a9 100644 --- a/openlibrary/plugins/upstream/addtag.py +++ b/openlibrary/plugins/upstream/addtag.py @@ -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") @@ -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")