-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement rdfproxy.ConfigDict extension for model configs
Currently, the rdfproxy custom settings for pydantic.ConfigDict are rightfully flagged by static checkers. Subclassing pydantic.ConfigDict and providing rdfproxy-specific config options solves this problem and provides better IDE support for instantiating model configs. Closes #159.
- Loading branch information
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from rdfproxy.adapter import SPARQLModelAdapter # noqa: F401 | ||
from rdfproxy.mapper import ModelBindingsMapper # noqa: F401 | ||
from rdfproxy.utils._types import SPARQLBinding # noqa: F401 | ||
from rdfproxy.utils._types import ConfigDict, SPARQLBinding # noqa: F401 | ||
from rdfproxy.utils.models import Page, QueryParameters # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters