Skip to content
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

Add typing to rdflib.term #1683

Merged
merged 1 commit into from Jan 29, 2022

Conversation

aucampia
Copy link
Member

@aucampia aucampia commented Jan 22, 2022

This adds as much typing as possible to rdflib.term.

Other changes:

  • Added back warn_unused_ignores. I actually thought this was enabled
    but I forgot I disabled it because of some issue on python 3.10.
  • Disabled warn_unused_ignores only for rdflib.plugin. There is an
    ignore in this module which is not needed on python 3.10, this is the
    most targetted way to avoid having that fail the type checking that I
    can think of for now.
  • Removed unused type ignores.

This changeset includes no runtime changes.

@aucampia aucampia force-pushed the iwana-20220122T0119-term_typing branch 4 times, most recently from dd0558a to 480dd37 Compare January 22, 2022 18:29
This adds as much typing as possible to `rdflib.term`.

Other changes:
- Added back `warn_unused_ignores`. I actually thought this was enabled
  but I forgot I disabled it because of some issue on python 3.10.
- Disabled `warn_unused_ignores` only for `rdflib.plugin`. There is an
  ignore in this module which is not needed on python 3.10, this is the
  most targetted way to avoid having that fail the type checking that I
  can think of for now.
- Removed unused type ignores.

This changeset includes no runtime changes.
@aucampia aucampia force-pushed the iwana-20220122T0119-term_typing branch from 480dd37 to 2d1a647 Compare January 22, 2022 18:49
@aucampia aucampia added the review wanted This indicates that the PR is ready for review label Jan 22, 2022
@aucampia aucampia marked this pull request as ready for review January 22, 2022 18:59
@aucampia
Copy link
Member Author

Label is so that it shows up in global search for is:pr is:open label:"review wanted"

@nicholascar nicholascar self-requested a review January 23, 2022 02:19
Copy link
Member

@nicholascar nicholascar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me and perhaps we only need one review since this includes no runtime changes

@aucampia aucampia merged commit 6ce6f0c into RDFLib:master Jan 29, 2022
@aucampia aucampia deleted the iwana-20220122T0119-term_typing branch April 9, 2022 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review wanted This indicates that the PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants