From 8d670133febb837b0edcce9c92567f3381d9ecb5 Mon Sep 17 00:00:00 2001 From: Denis Washington Date: Fri, 21 Jun 2024 23:04:07 +0200 Subject: [PATCH] chore: mark AppReview.review as deprecated --- src/app_store_web_scraper/_entry.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app_store_web_scraper/_entry.py b/src/app_store_web_scraper/_entry.py index 7ccda71..2b8417e 100644 --- a/src/app_store_web_scraper/_entry.py +++ b/src/app_store_web_scraper/_entry.py @@ -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 @@ -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