Skip to content

Commit

Permalink
hashfile: obj: add __slots__
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Jun 20, 2022
1 parent 06a9522 commit 5347388
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ install_requires=
dictdiffer>=0.8.1
pygtrie>=2.3.2
shortuuid>=0.5.0
dvc-objects==0.0.10
dvc-objects==0.0.11
diskcache>=5.2.1
nanotime>=0.5.2

Expand Down
2 changes: 2 additions & 0 deletions src/dvc_data/hashfile/obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@


class HashFile(Object):
__slots__ = ("hash_info",)

def __init__(
self, path: "AnyFSPath", fs: "FileSystem", hash_info: "HashInfo"
):
Expand Down

0 comments on commit 5347388

Please sign in to comment.