From d4350cd8888c6ff9638185fd255ef6be1a97b2e5 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 19 May 2023 06:56:21 +0000 Subject: [PATCH] Types --- matcher/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matcher/model.py b/matcher/model.py index 6eb122b..634346a 100644 --- a/matcher/model.py +++ b/matcher/model.py @@ -116,7 +116,7 @@ class Item(Base): """Wikidata URL for item.""" return f"https://www.wikidata.org/wiki/{self.qid}" - def get_claim(self, pid: str) -> list[dict[str, Any] | None]: + def get_claim(self, pid: str) -> list[str | int | dict[str, str | int] | None]: """List of claims for given Wikidata property ID.""" claims = typing.cast(wikidata.Claims, self.claims) return [