Skip to content

Commit

Permalink
[bugfix] Fix LexemePage doctest
Browse files Browse the repository at this point in the history
Bug: T370168
Change-Id: I87ee013970588032faae1ad7c8830a92a0135070
  • Loading branch information
xqt committed Jul 16, 2024
1 parent 9fd19f1 commit 4187a2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pywikibot/page/_wikibase.py
Original file line number Diff line number Diff line change
Expand Up @@ -2138,17 +2138,17 @@ class LexemePage(WikibasePage):
>>> import pywikibot
>>> repo = pywikibot.Site('wikidata')
>>> L2 = pywikibot.LexemePage(repo, 'L2') # create a Lexeme page
>>> list(L2.claims.keys()) # access the claims
['P5402', 'P5831']
>>> list(L2.claims) # access the claims
['P5402', 'P5831', 'P12690']
>>> len(L2.forms) # access the forms
2
>>> F1 = L2.forms[0] # access the first form
>>> list(F1.claims.keys()) # access its claims
>>> list(F1.claims) # access its claims
['P898']
>>> len(L2.senses) # access the senses
1
>>> S1 = L2.senses[0] # access the first sense
>>> list(S1.claims.keys()) # and its claims
>>> list(S1.claims) # and its claims
['P5137', 'P5972', 'P2888']
"""

Expand Down

0 comments on commit 4187a2e

Please sign in to comment.