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

feat: add type hints to rdflib.plugins.sparql.{algebra,operators} #2094

Merged
merged 1 commit into from
Aug 23, 2022

Conversation

aucampia
Copy link
Member

@aucampia aucampia commented Aug 21, 2022

Summary of changes

More or less complete type hints for rdflib.plugins.sparql.algebra and
rdflib.plugins.sparql.operators.

This does not change runtime behaviour.

Other changes:

  • Fixed line endings of test/test_issues/test_issue1043.py
    and test/test_issues/test_issue910.py.
    (view diff with https://github.com/RDFLib/rdflib/pull/2094/files?diff=split&w=1 to ignore whitespaces changes which should clean these up)
  • Removed a type hint comment that was present in rdflib/plugins/sparql/algebra.py

This is split-off from #1850.

Related issues:

A compact diff with non-runtime aspects stripped out can be found here.

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.

@aucampia aucampia force-pushed the iwana-20220821T2011-com2ann branch 2 times, most recently from e2fb319 to d0cb519 Compare August 21, 2022 19:39
@aucampia aucampia marked this pull request as ready for review August 21, 2022 19:47
@coveralls
Copy link

coveralls commented Aug 21, 2022

Coverage Status

Coverage increased ( 0.002%) to 90.636% when pulling 4a18d13 on aucampia:iwana-20220821T2011-com2ann into 2ce4e2b on RDFLib:master.

@aucampia aucampia requested a review from a team August 22, 2022 16:31
@aucampia aucampia added the review wanted This indicates that the PR is ready for review label Aug 22, 2022
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

👍

More or less complete type hints for `rdflib.plugins.sparql.algebra` and
`rdflib.plugins.sparql.operators`.

This does not change runtime behaviour.

Other changes:
- Fixed line endings of `test/test_issues/test_issue1043.py`
  and `test/test_issues/test_issue910.py`.
- Removed a type hint comment that was present in rdflib/plugins/sparql/algebra.py

Related issues:
- Closes <RDFLib#2029>.
@aucampia aucampia merged commit c487be6 into RDFLib:master Aug 23, 2022
@aucampia aucampia deleted the iwana-20220821T2011-com2ann branch April 9, 2023 15:05
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.

Run com2ann on three files
2 participants