Lokal_Profil added a comment.
Alternatively I've misunderstood the purpose of `Claim.target_equals()`and the
question it answers is instead "is the provided value within the precision of
the target".
In which case if we should do something like:
if target.precision >= pywikibot.WbTime.PRECISION['year']:
precision = int(1000000000) / pow(10, target.precision)
return abs(self.target.year - int(value)) <= precision
else:
return self.target.year == int(value))
TASK DETAIL
https://phabricator.wikimedia.org/T123883
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Lokal_Profil
Cc: Aklapper, StudiesWorld, Lokal_Profil, pywikibot-bugs-list, Ricordisamoa
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs