RDFLib / rdflib

RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
https://rdflib.readthedocs.org
BSD 3-Clause "New" or "Revised" License
2.18k stars 559 forks source link

Annotate Serializer.serialize and descendants #2970

Closed ajnelson-nist closed 2 weeks ago

ajnelson-nist commented 2 weeks ago

This patch aligns the type signatures on Serializer subclasses, including renaming the arbitrary-keywords dictionary to always be **kwargs. This is in part to prepare for the possibility of adding *args as a positional-argument delimiter.

References:

Summary of changes

Checklist

ajnelson-nist commented 2 weeks ago

This PR is ready for review and merge.

I'll be folding it into #1978 too.

coveralls commented 2 weeks ago

Coverage Status

coverage: 90.249% (+0.001%) from 90.248% when pulling 2dfdfc032c99a5dd3b23b8d82255b5b0ef6e6670 on ajnelson-nist:issue-1890-serializer-types into 086a4f7de110c71890aa3543a9099fc5ee2b1aab on RDFLib:main.

ashleysommer commented 2 weeks ago

Nice one. Thanks.