• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

RDFLib / rdflib / 15362524171
90%
master: 91%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/pyparsing-3.3.1
DEFAULT BRANCH: master
Ran 31 May 2025 09:59AM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
15362524171

push

github

web-flow
fix: remove Literal.toPython date conversion for gYear/gYearMonth (#3115)

* fix: remove Literal.toPython casting for gYear and gYearMonth

Issue #3078 reports, that rdflib.Literal.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 January 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 .

* test: adapt rdflib.Literal tests to gYear/gYearMonth toPython change

---------

Co-authored-by: Nicholas Car <nick@kurrawong.net>
Source Files on build 15362524171
Detailed source file information is not available for this build.
  • Back to Repo
  • f9161a53 on github
  • Prev Build on main (#14141190847)
  • Next Build on main (#15362580087)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc