Skip to content

Commit

Permalink
chore: mark AppReview.review as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
denisw committed Jun 21, 2024
1 parent 6b6ba91 commit 8d67013
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app_store_web_scraper/_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from collections.abc import Iterator
from dataclasses import dataclass
from datetime import datetime
import warnings

from app_store_web_scraper._errors import AppNotFound
from app_store_web_scraper._session import AppStoreSession
Expand All @@ -27,6 +28,11 @@ def review(self) -> str:
"""
An alias for ``content``, provided for backwards compatibility.
"""
warnings.warn(
"'AppReview.review' is deprecated, use 'content' instead.",
category=DeprecationWarning,
stacklevel=2,
)
return self.content


Expand Down

0 comments on commit 8d67013

Please sign in to comment.