You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: remove Literal.toPython casting for gYear and gYearMonth
Issue #3078 reports, that toPython-casting of xsd:gYear and
xsd:gYearMonth to datetime objects is not possible, as there is no
appropriate Python equivalence for those types.
The current implementation casts xsd:gYear and xsd:gYearMonth to
datetime objects assuming Jannuary 1st for xsd:gYear and the 1st day
of the given month for xsd:gYearMonth. This is plain wrong.
The change removes casting to datetime objects in
rdflib.Literal.toPython for xsd:gYear and xsd:gYearMonth.
Closes#3078 .
0 commit comments