feat: add type hints to rdflib.util
by aucampia · Pull Request #2262 · RDFLib/rdflib (original) (raw)
Summary of changes
Mainly so that users can use RDFLib in a safer way, and that we can make safer changes to RDFLib in the future.
There are also some accommodating type-hint related changes outside rdflib.util
.
This change does not have a runtime impact, as can be seen from https://gist.github.com/aucampia/199693249de4fa71a3b395bcf1805682.
Checklist
- Checked that there aren't other open pull requests for
the same change. - Checked that all tests and type checking passes.
- Considered granting push permissions to the PR branch,
so maintainers can fix minor issues and keep your PR up to date.