Page MenuHomePhabricator

Missing not-equal comparison for Wikibase types
Closed, ResolvedPublic

Description

We allow for comparison of Wikibase types (e.g. WbMonolingualText) but comparisons for not Equal does not give the expected results.

To illustrate:

import pywikibot as pwb

A = pwb.WbMonolingualText('Same', 'en')
B = pwb.WbMonolingualText('Same', 'en')
C = pwb.WbMonolingualText('Different', 'en')

A == B  # expect True
> True
A != B  # expect False !!
> True
A == C  # expect False
> False
A != C  # expect True
> True

Details

Event Timeline

Change 339399 had a related patch set uploaded (by Lokal Profil):
Add missing not-equal comparison for wbtypes

https://gerrit.wikimedia.org/r/339399

Change 339399 merged by jenkins-bot:
Add missing not-equal comparison for wbtypes

https://gerrit.wikimedia.org/r/339399

Dalba claimed this task.
Dalba removed Dalba as the assignee of this task.
Dalba assigned this task to Lokal_Profil.
Dalba subscribed.