From 53473882c36bbba821931da0ca8bed8af1a51322 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Mon, 20 Jun 2022 11:26:39 +0300 Subject: [PATCH] hashfile: obj: add __slots__ Same as in https://github.com/iterative/dvc-objects/pull/63 --- setup.cfg | 2 +- src/dvc_data/hashfile/obj.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index c889b83b..625d2eae 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/src/dvc_data/hashfile/obj.py b/src/dvc_data/hashfile/obj.py index f171c432..7b5edeca 100644 --- a/src/dvc_data/hashfile/obj.py +++ b/src/dvc_data/hashfile/obj.py @@ -8,6 +8,8 @@ class HashFile(Object): + __slots__ = ("hash_info",) + def __init__( self, path: "AnyFSPath", fs: "FileSystem", hash_info: "HashInfo" ):