Skip to content

Comments

Add ObjectBox and frozen Type.metadata#81

Merged
JacobHayes merged 2 commits intogoldenfrom
type-frozen-metadata
Aug 23, 2021
Merged

Add ObjectBox and frozen Type.metadata#81
JacobHayes merged 2 commits intogoldenfrom
type-frozen-metadata

Conversation

@JacobHayes
Copy link
Member

Add Type.metadata as a frozen Box to support arbitrary type metadata (eg: as a lightweight alternative to Struct.{abstract,interfaces} in #75).

I first played around with the frozendict package, but had a few (avoidable) issues before remembering that the Box package we already use (for Graph.artifacts) supports frozen_box=True and automatically freezes dicts+lists recursively.

@JacobHayes JacobHayes self-assigned this Aug 20, 2021
@JacobHayes JacobHayes requested a review from joycex99 August 20, 2021 03:00
@codecov
Copy link

codecov bot commented Aug 21, 2021

Codecov Report

Merging #81 (c9f7039) into golden (0068159) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            golden       #81   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines          814       833   +19     
  Branches        93        97    +4     
=========================================
+ Hits           814       833   +19     
Impacted Files Coverage Δ
src/arti/internal/utils.py 100.00% <100.00%> (ø)
src/arti/types/__init__.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 0068159...c9f7039. Read the comment docs.

@JacobHayes JacobHayes merged commit e2aaf19 into golden Aug 23, 2021
@JacobHayes JacobHayes deleted the type-frozen-metadata branch August 23, 2021 17: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