Skip to content

Commit

Permalink
Add page typing
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyroddy committed Sep 13, 2023
1 parent 50a3faf commit 32ba6ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions heracles/catalog/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
import healpy as hp
import numpy as np

from .base import CatalogPage


class InvalidValueFilter:
"""Filter invalid values from a catalogue."""
Expand Down Expand Up @@ -59,7 +61,7 @@ def __repr__(self) -> str:
args = ", ".join(args)
return f"{name}({args})"

def __call__(self, page: TypeVar("Unknown")) -> None:
def __call__(self, page: CatalogPage) -> None:
"""Filter a catalog page.
Args:
Expand Down Expand Up @@ -120,7 +122,7 @@ def __repr__(self) -> str:
lon, lat = self.lonlat
return f"{name}(..., {lon!r}, {lat!r})"

def __call__(self, page: TypeVar("Unknown")) -> None:
def __call__(self, page: CatalogPage) -> None:
"""Filter catalog page.
Args:
Expand Down

0 comments on commit 32ba6ad

Please sign in to comment.