Skip to content

Commit

Permalink
Merge pull request #160 from fonttools/no-cmp-private-font-attrs
Browse files Browse the repository at this point in the history
Don't compare private Font attributes
  • Loading branch information
madig authored Sep 7, 2021
2 parents 8a097d4 + 973c634 commit 7196c20
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/ufoLib2/objects/font.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ class Font:
default layer.
"""

_path: Optional[PathLike] = attr.ib(default=None, metadata=dict(copyable=False))
_path: Optional[PathLike] = attr.ib(
default=None, metadata=dict(copyable=False), cmp=False
)

layers: LayerSet = attr.ib(
factory=LayerSet.default,
Expand Down Expand Up @@ -152,11 +154,15 @@ class Font:
)
"""ImageSet: A mapping of image file paths to arbitrary image data."""

_lazy: Optional[bool] = attr.ib(default=None, kw_only=True)
_validate: bool = attr.ib(default=True, kw_only=True)
_lazy: Optional[bool] = attr.ib(default=None, kw_only=True, cmp=False)
_validate: bool = attr.ib(default=True, kw_only=True, cmp=False)

_reader: Optional[UFOReader] = attr.ib(default=None, kw_only=True, init=False)
_fileStructure: Optional[UFOFileStructure] = attr.ib(default=None, init=False)
_reader: Optional[UFOReader] = attr.ib(
default=None, kw_only=True, init=False, cmp=False
)
_fileStructure: Optional[UFOFileStructure] = attr.ib(
default=None, init=False, cmp=False
)

def __attrs_post_init__(self) -> None:
if self._path is not None:
Expand Down

0 comments on commit 7196c20

Please sign in to comment.