Skip to content

feat: add type hints to rdflib.util #2262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2023

Conversation

aucampia
Copy link
Member

@aucampia aucampia commented Mar 11, 2023

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.

Mainly so that users can use RDFLib in a safer way, and that we can make
safer changes to RDFLib in future.

There are also some accomodating type-hint related changes outside of `rdflib.util`.

This change does not have a runtime impact.
@aucampia
Copy link
Member Author

aucampia commented Mar 11, 2023

I plan to merge this with no review as all validation passes, and the PR has no runtime changes.

@coveralls
Copy link

Coverage Status

Coverage: 90.771% (+0.0004%) from 90.771% when pulling 70a623f on aucampia:iwana-20230311T1427-type_util into 09b9069 on RDFLib:main.

@aucampia aucampia requested a review from a team March 11, 2023 14:51
@aucampia aucampia added review wanted This indicates that the PR is ready for review ready to merge The PR will be merged soon if no further feedback is provided. labels Mar 11, 2023
@aucampia aucampia changed the title feat: add typing to rdflib.util feat: add type hints to rdflib.util Mar 11, 2023
@aucampia aucampia merged commit 314c770 into RDFLib:main Mar 12, 2023
@aucampia aucampia deleted the iwana-20230311T1427-type_util branch April 9, 2023 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge The PR will be merged soon if no further feedback is provided. review wanted This indicates that the PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants