Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions malariagen_data/anoph/snp_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,12 @@ def __init__(
self._default_site_mask = default_site_mask

# Set up caches.
# TODO review type annotations here, maybe can tighten
self._cache_snp_sites = None
self._cache_snp_genotypes: Dict = dict()
self._cache_site_filters: Dict = dict()
self._cache_site_annotations = None
self._cache_locate_site_class: Dict = dict()


self._cache_snp_sites: Optional[Any] = None
self._cache_snp_genotypes: Dict[str, Any] = dict()
self._cache_site_filters: Dict[str, Any] = dict()
self._cache_site_annotations: Optional[Any] = None
self._cache_locate_site_class: Dict[str, Any] = dict()
# Create the SNP-calls cache as a per-instance lru_cache wrapping the
# bound method. Storing it on the instance (rather than using a
# class-level @lru_cache decorator) means:
Expand Down