Skip to content

Commit

Permalink
tests: update doctest for LexemePage
Browse files Browse the repository at this point in the history
Bug: T383130
Change-Id: Ifcb4d5f0c897424edbb3a94a861fbe8d2cb9f6e5
  • Loading branch information
xqt committed Jan 7, 2025
1 parent ae80c82 commit 500f9a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywikibot/page/_wikibase.py
Original file line number Diff line number Diff line change
Expand Up @@ -2139,7 +2139,7 @@ class LexemePage(WikibasePage):
>>> repo = pywikibot.Site('wikidata')
>>> L2 = pywikibot.LexemePage(repo, 'L2') # create a Lexeme page
>>> list(L2.claims) # access the claims
['P5402', 'P5831', 'P12690']
['P5402', 'P5831', 'P12690', 'P12448', 'P31', 'P5275', 'P12510', ...]
>>> len(L2.forms) # access the forms
3
>>> F1 = L2.forms[0] # access the first form
Expand Down

0 comments on commit 500f9a4

Please # to comment.