Skip to content

Commit b2c0ae4

Browse files
committed
Ignore type errors when setting class attributes
1 parent db76f11 commit b2c0ae4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

diskcache/fanout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,4 +664,4 @@ def index(self, name):
664664
return index
665665

666666

667-
FanoutCache.memoize = Cache.memoize
667+
FanoutCache.memoize = Cache.memoize # type: ignore

diskcache/persistent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ def rotate(self, steps=1):
591591
else:
592592
self.append(value)
593593

594-
__hash__ = None
594+
__hash__ = None # type: ignore
595595

596596
@contextmanager
597597
def transact(self):
@@ -1033,7 +1033,7 @@ def items(self):
10331033
"""
10341034
return ItemsView(self)
10351035

1036-
__hash__ = None
1036+
__hash__ = None # type: ignore
10371037

10381038
def __getstate__(self):
10391039
return self.directory

0 commit comments

Comments
 (0)