Skip to content

Commit

Permalink
Update item.py
Browse files Browse the repository at this point in the history
Allow to pass parameters to BaseEntity.get()
  • Loading branch information
LeMyst committed Aug 21, 2021
1 parent 2c396f2 commit 8539d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wikibaseintegrator/entities/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def __init__(self, api, labels=None, descriptions=None, aliases=None, sitelinks=
def new(self, **kwargs) -> Item:
return Item(self.api, **kwargs)

def get(self, entity_id) -> Item:
json_data = super(Item, self).get(entity_id=entity_id)
def get(self, entity_id, **kwargs) -> Item:
json_data = super(Item, self).get(entity_id=entity_id, **kwargs)
return Item(self.api).from_json(json_data=json_data['entities'][entity_id])

def get_json(self) -> {}:
Expand Down

0 comments on commit 8539d19

Please sign in to comment.