Skip to content

Commit

Permalink
remove deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
avaldebe committed Aug 29, 2024
1 parent 271d8ea commit 8d41ffa
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions airbase/airbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,6 @@ def __init__(self) -> None:
"""All pollutants available from AirBase"""
self._pollutants_ids = DB.pollutants()

@property
def all_countries(self) -> list[str]: # pragma: no cover
warnings.warn(
f"{type(self).__qualname__}.all_countries has been deprecated and will be removed on v1. "
f"Use {type(self).__qualname__}.countries instead.",
DeprecationWarning,
stacklevel=2,
)
return self.countries

@property
def all_pollutants(self) -> dict[str, set[int]]: # pragma: no cover
warnings.warn(
f"{type(self).__qualname__}.all_pollutants has been deprecated and will be removed on v1. "
f"Use {type(self).__qualname__}._pollutants_ids instead.",
DeprecationWarning,
stacklevel=2,
)
return self._pollutants_ids

def request(
self,
country: str | list[str] | None = None,
Expand Down

0 comments on commit 8d41ffa

Please sign in to comment.