From 40bbafcaabd7374bb906fc333be8f688756871d6 Mon Sep 17 00:00:00 2001 From: hadrianl <137150224@qq.com> Date: Tue, 22 Dec 2020 10:54:13 +0800 Subject: [PATCH] black format --- qlib/data/cache.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/qlib/data/cache.py b/qlib/data/cache.py index f6659e863..00cbcec9e 100644 --- a/qlib/data/cache.py +++ b/qlib/data/cache.py @@ -47,12 +47,8 @@ class MemCacheUnit(abc.ABC): self.size_limit = kwargs.pop("size_limit", 0) self.limit_type = kwargs.pop("limit_type", "length") - assert self.limit_type in ["length", "sizeof"], ValueError( - "limit_type shoule be one of ['length', 'sizeof']" - ) - assert self.size_limit >= 0, ValueError( - "size_limit shoule not be negative.The default 0 means unlimited!" - ) + assert self.limit_type in ["length", "sizeof"], ValueError("limit_type shoule be one of ['length', 'sizeof']") + assert self.size_limit >= 0, ValueError("size_limit shoule not be negative.The default 0 means unlimited!") # limit_flag: whether to popitem or not self._limit_flag = 1 if self.size_limit > 0 else 0