-
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.
refactor: TypeAffinityRepr is not a subclass of str anymore, split ty…
…pe_affinity mapping implement out of TypeAffinityRepr (#67) This PR introduces refactor over TypeAffinityRepr as follow: 1. now TypeAffinityRepr is not a subclass of str, it is a simple standalone class with `origin` and `type_affinity` attrs exposed. 2. the type_affinity mapping implementation now is split from TypeAffinityRepr and becomes `map_type` helper function. The behavior of TypeAffinityRepr is not changed, calling str over an TypeAffinityRepr object will still give you the affinity string.
- Loading branch information
Showing
2 changed files
with
79 additions
and
50 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
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
c8d45ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report