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 some typing for evaluation related functions in the SPARQL plugin. #1633

Merged

Conversation

aucampia
Copy link
Member

@aucampia aucampia commented Dec 29, 2021

Added this while debugging #1524.

This change contains no runtime changes.

Added this while debugging RDFLib#1524.

This change contains no runtime changes.
@aucampia aucampia force-pushed the iwana-20211025T2151-sparql_typing branch from a69193e to 251121f Compare December 29, 2021 22:23
@@ -299,7 +301,7 @@ def evalPart(ctx, part):
raise Exception("I dont know: %s" % part.name)


def evalServiceQuery(ctx, part):
def evalServiceQuery(ctx: QueryContext, part):
Copy link
Member

Choose a reason for hiding this comment

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

Any reason this part doesn't have CompValue like the others?

Copy link
Member Author

Choose a reason for hiding this comment

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

No particular reason, I was just adding types which were either very clear or part of the code being executed, the untyped values remain typing.Any, but should ideally eventually also be typed with gradual typing.

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.

Merging without second review as this PR just adds types

@nicholascar nicholascar merged commit 12b5320 into RDFLib:master Jan 4, 2022
@aucampia aucampia deleted the iwana-20211025T2151-sparql_typing branch January 8, 2022 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants