From d814ecf3a480e38b23ca8a22e2c7122af8c1c16f Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Thu, 9 Nov 2023 07:39:39 +0100 Subject: [PATCH] Adjust import style --- depicts/artwork.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/depicts/artwork.py b/depicts/artwork.py index 88ee450..8a629ba 100644 --- a/depicts/artwork.py +++ b/depicts/artwork.py @@ -1,6 +1,6 @@ """Class to represent artwork.""" -from . import mediawiki +from .mediawiki import get_entity, get_entity_with_cache from .type import Claims, Entity, Sitelinks @@ -12,7 +12,7 @@ class Artwork: def __init__(self, qid: str) -> None: """Init.""" - entity = mediawiki.get_entity_with_cache(qid) + entity = get_entity_with_cache(qid) assert entity self.entity = entity self.item_id = int(qid[1:]) @@ -48,7 +48,7 @@ class Artwork: self.artist_entities = [] for artist in self.artists_claim: - artist_entity = mediawiki.get_entity(artist["id"]) + artist_entity = get_entity(artist["id"]) assert artist_entity self.artist_entities.append(artist_entity)