dahlia / wikidata

Wikidata client library for Python
https://pypi.org/project/Wikidata/
GNU General Public License v3.0
337 stars 31 forks source link

add precision 7 #59

Closed BaptisteBayche closed 2 months ago

BaptisteBayche commented 2 months ago

Following the issue #58 I create this pull request. I propose this change to fix this error 7: time precision other than 9, 11 or 14 is unsupported wikidata {'type': 'time', 'value': {'time': '+2000-00-00T00:00:00Z', 'timezone': 0, 'before': 0, 'after': 0, 'precision': 7, 'calendarmodel': 'http://www.wikidata.org/entity/Q1985727'}}.

BaptisteBayche commented 2 months ago

Hi,

Thank you for your reply. I just came to add the entry in the changelog. Is it fine like that?

BaptisteBayche commented 2 months ago

I think the tests are ok now.