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

fix: Type hint cleanup #15

Merged
merged 1 commit into from
Jul 26, 2024
Merged

fix: Type hint cleanup #15

merged 1 commit into from
Jul 26, 2024

Conversation

lu-pl
Copy link
Contributor

@lu-pl lu-pl commented Jul 25, 2024

closes: #10

Replaced ModelInstance type with
rdfproxy.utils._types._TMOdelInstance. ModelInstance was defined using
PEP 695 before but the type will be used all over the code base and
should have a central definition.

Fixed _TModelConstructorCallable type to be a Callable expecting a
SPARQLWrapper.QueryResult parameter and returning an Iterable of
Pydantic model instances.

closes: #10
@lu-pl lu-pl force-pushed the lupl/type_fixes branch from f33cb8d to b73fc95 Compare July 25, 2024 11:47
@lu-pl lu-pl merged commit f4c0448 into main Jul 26, 2024
7 checks passed
@lu-pl lu-pl deleted the lupl/type_fixes branch October 18, 2024 04: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.

Fix _TModelConstructorCallable type and revise type definitions
2 participants