Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1108749?usp=email )
Change subject: tests: update doctest for LexemePage ......................................................................
tests: update doctest for LexemePage
Bug: T383130 Change-Id: Ifcb4d5f0c897424edbb3a94a861fbe8d2cb9f6e5 --- M pywikibot/page/_wikibase.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/pywikibot/page/_wikibase.py b/pywikibot/page/_wikibase.py index 486cf3d..cc2878f 100644 --- a/pywikibot/page/_wikibase.py +++ b/pywikibot/page/_wikibase.py @@ -2139,7 +2139,7 @@ >>> 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
pywikibot-commits@lists.wikimedia.org