File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1- Fixed bug in `DiffSyncModelUtilityMixin.get_attr_args()` for Annoted type hints wrapped in `Optional[]` tag.
1+ Fixed bug in `DiffSyncModelUtilityMixin.get_attr_args()` for Annoted type hints wrapped in `Optional[]` tag.
2+ Fix hashing issue on Custom Annotations.
Original file line number Diff line number Diff line change 99from nautobot_ssot .contrib .enums import RelationshipSideEnum
1010
1111
12+
1213class CustomAnnotation :
1314 """Base class used to identify custom annotations in SSoT operations."""
1415
16+ def __hash__ (self ):
17+ """Return a hash of the class instance."""
18+ return hash (frozenset ({"class" : self .__class__ } | self .__dict__ ))
19+
1520
1621@dataclass
1722class CustomRelationshipAnnotation (CustomAnnotation ):
You can’t perform that action at this time.
0 commit comments