From f9aea19bedae53bdb9c4883b0e702380710f4c10 Mon Sep 17 00:00:00 2001 From: Marcus Bitzl Date: Thu, 5 Sep 2024 14:29:04 +0200 Subject: [PATCH] Fix code smell --- iiif_binder/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iiif_binder/__init__.py b/iiif_binder/__init__.py index 73b99dc..9535faa 100644 --- a/iiif_binder/__init__.py +++ b/iiif_binder/__init__.py @@ -1,5 +1,6 @@ import json from os.path import exists +from typing import Optional from pydantic import BaseModel, Path @@ -17,7 +18,7 @@ class Metadata(BaseModel): description: str = None navdate: str = None viewing_hint: str = "individuals" - license: str = None + license: Optional[str] = None attribution: str = None