Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos discovered by codespell #338

Merged
merged 1 commit into from
May 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def test_fastrun_label(self):
item.set_aliases(["fake alias"], if_exists='APPEND')
assert {'language': 'en', 'value': 'fake alias'} in item.json_representation['aliases']['en']

# something thats empty (for now.., can change, so this just makes sure no exception is thrown)
# something that's empty (for now.., can change, so this just makes sure no exception is thrown)
frc.check_language_data("Q2", ['Ewiase'], 'ak', 'label')
frc.check_language_data("Q2", ['not Ewiase'], 'ak', 'label')
frc.check_language_data("Q2", [''], 'ak', 'description')
Expand All @@ -172,7 +172,7 @@ def test_sitelinks():


def test_nositelinks():
# this item doesn't and probably wont ever have any sitelinks (but who knows?? maybe one day..)
# this item doesn't and probably won't ever have any sitelinks (but who knows?? maybe one day..)
data = [wbi_datatype.ItemID(value='Q5', prop_nr='P31')]
item = wbi_core.ItemEngine(item_id='Q27869338', data=data)
item.get_sitelink("enwiki")
Expand Down
4 changes: 2 additions & 2 deletions wikibaseintegrator/wbi_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def update(self, data):
being instantiated with search_only=True. In the latter case, this allows for checking the item data before deciding which new data should be written to
the Wikidata item. The actual write to Wikidata only happens on calling of the write() method. If data has been provided already via the constructor,
data provided via the update() method will be appended to these data.
:param data: A list of Wikidata statment items inheriting from BaseDataType
:param data: A list of Wikidata statement items inheriting from BaseDataType
:type data: list
"""

Expand Down Expand Up @@ -585,7 +585,7 @@ def write(self, login, bot_account=True, edit_summary='', entity_type='item', pr
:type bot_account: bool
:param edit_summary: A short (max 250 characters) summary of the purpose of the edit. This will be displayed as the revision summary of the item.
:type edit_summary: str
:param entity_type: Decides wether the object will become a 'form', 'item' (default), 'lexeme', 'property' or 'sense'
:param entity_type: Decides whether the object will become a 'form', 'item' (default), 'lexeme', 'property' or 'sense'
:type entity_type: str
:param property_datatype: When payload_type is 'property' then this parameter set the datatype for the property
:type property_datatype: str
Expand Down
2 changes: 1 addition & 1 deletion wikibaseintegrator/wbi_fastrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def get_prop_datatype(self, prop_nr: str) -> str:

def clear(self) -> None:
"""
convinience function to empty this fastrun container
convenience function to empty this fastrun container
"""
self.prop_dt_map = {}
self.prop_data = {}
Expand Down