Skip to content

Comments

Replace Type.metadata with TypeSystem hints#90

Merged
JacobHayes merged 1 commit intogoldenfrom
metadata-to-hints
Sep 8, 2021
Merged

Replace Type.metadata with TypeSystem hints#90
JacobHayes merged 1 commit intogoldenfrom
metadata-to-hints

Conversation

@JacobHayes
Copy link
Member

Rather than storing arbitrary Type.metadata for use as "hints" during TypeSystem conversions, this formalizes a hints argument to the to_artigraph and to_system TypeSystem/TypeAdapter methods.

In the future, we may add some (optional) "supported hints" Enum validation (eg: sgqlc_type_system accepts "sgqlc.abstract" and "sgqlc.interfaces" hints).

@JacobHayes JacobHayes self-assigned this Sep 3, 2021
@JacobHayes JacobHayes requested a review from joycex99 September 3, 2021 21:10
@codecov
Copy link

codecov bot commented Sep 3, 2021

Codecov Report

Merging #90 (f8b2a92) into golden (bda52f7) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            golden       #90   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           23        23           
  Lines         1119      1087   -32     
  Branches       144       139    -5     
=========================================
- Hits          1119      1087   -32     
Impacted Files Coverage Δ
src/arti/internal/models.py 100.00% <ø> (ø)
src/arti/internal/utils.py 100.00% <ø> (ø)
src/arti/types/__init__.py 100.00% <100.00%> (ø)
src/arti/types/pydantic.py 100.00% <100.00%> (ø)
src/arti/types/python.py 100.00% <100.00%> (ø)
src/arti/types/sgqlc.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bda52f7...f8b2a92. Read the comment docs.

@JacobHayes JacobHayes merged commit 69e995a into golden Sep 8, 2021
@JacobHayes JacobHayes deleted the metadata-to-hints branch September 8, 2021 00:39
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.

1 participant