Skip to content

Commit

Permalink
ZipWrapper: fix warnings in PyCharm
Browse files Browse the repository at this point in the history
PyCharm of course doesn't like _cache = None
  • Loading branch information
gmazzamuto committed Dec 14, 2021
1 parent 6b826a5 commit 64a1da7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zetastitcher/io/zipwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@

from zetastitcher.io.inputfile_mixin import InputFileMixin

_cache = None
# disable cache
_cache = LRUCache(maxsize=0)
_cache.hits = 0
_cache.misses = 0


def set_cache(cache):
Expand All @@ -46,9 +49,6 @@ def set_cache(cache):
_cache.misses = 0


set_cache(LRUCache(maxsize=0)) # disable cache


def get_typecodes():
ct = ctypes
simple_types = [
Expand Down

0 comments on commit 64a1da7

Please sign in to comment.