Skip to content

Commit

Permalink
DataStore: make _lazy init=False and default=False
Browse files Browse the repository at this point in the history
- It's only relevant for the read() constructor, not for standalone
  instantiation, so no init.
- Standalone instantiation cannot have lazy data by definition, so default
  to False.
  • Loading branch information
madig committed Sep 21, 2021
1 parent 5d11c42 commit 4341214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ufoLib2/objects/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class DataStore(MutableMapping):

_data: Dict[str, Union[bytes, Placeholder]] = attr.ib(factory=dict)

_lazy: Optional[bool] = attr.ib(default=None, kw_only=True, cmp=False)
_lazy: Optional[bool] = attr.ib(default=False, kw_only=True, cmp=False, init=False)
_reader: Optional[UFOReader] = attr.ib(
default=None, init=False, repr=False, cmp=False
)
Expand Down

0 comments on commit 4341214

Please sign in to comment.