This fix do not affect entities with supported calendar models:
x = 'Q2897944'
entity= client.get(x)
print(entity[birthdate])
1951-12-02
I believe this small fix help users to define appropriate strategies when facing unsupported calendar models, instead of having the whole program crash, or having to implement alternative decoders.
Users already need to check date types that could be int, date, datetime, or tuple. They'll may understand that when it is a dictionary, they need to do appropriate processings.
Let me know if you think this proposal is useful and consistent with the philosophy of this project
Kind regards, and thanks again for this usefull framework !
Dear Maintainer,
Here is a simple proposal for avoiding crashes in situations when unsupported calendar models are found in wikidata (see issue #54).
The minimalist strategy consist to return the raw dictionary of unsupported calendar models instead of having the program crashing.
See this entity with a Julian birthdate :
This fix do not affect entities with supported calendar models:
I believe this small fix help users to define appropriate strategies when facing unsupported calendar models, instead of having the whole program crash, or having to implement alternative decoders. Users already need to check date types that could be int, date, datetime, or tuple. They'll may understand that when it is a dictionary, they need to do appropriate processings.
Let me know if you think this proposal is useful and consistent with the philosophy of this project
Kind regards, and thanks again for this usefull framework !