Skip to content

Tighten cache type annotations#1215

Open
fr3r34tgf5r4ef wants to merge 1 commit intomalariagen:masterfrom
fr3r34tgf5r4ef:fix/tighten-cache-type-annotations
Open

Tighten cache type annotations#1215
fr3r34tgf5r4ef wants to merge 1 commit intomalariagen:masterfrom
fr3r34tgf5r4ef:fix/tighten-cache-type-annotations

Conversation

@fr3r34tgf5r4ef
Copy link

@fr3r34tgf5r4ef fr3r34tgf5r4ef commented Mar 23, 2026

This PR improves type annotations for cache-related attributes in snp_data.py.

  • Added explicit typing for cache variables
  • Improves code readability and maintainability

Remove TODO and add explicit type parameters to Dict and Optional
annotations for cache attributes in AnophelesSnpData.__init__.

- Dict -> Dict[str, Any] for keyed caches
- None -> Optional[Any] for nullable caches
@fr3r34tgf5r4ef fr3r34tgf5r4ef changed the title fix: tighten cache type annotations in snp_data.py Tighten cache type annotations Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant