Skip to content

Commit

Permalink
fix: mypy error fix (added deprecated arguments)
Browse files Browse the repository at this point in the history
Signed-off-by: Trey <[email protected]>
  • Loading branch information
TreyWW committed Jul 16, 2024
1 parent 402ee4a commit 76cfebd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/api/public/endpoints/currency_conversion.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from datetime import datetime

from drf_yasg.utils import swagger_auto_schema
from drf_yasg import openapi
from rest_framework.permissions import IsAuthenticated
Expand Down Expand Up @@ -57,7 +59,7 @@ class CurrencyConversionSerializer(serializers.Serializer):
deprecated=True,
)
@api_view(["GET"])
@deprecated
@deprecated(datetime(2024, 6, 30), datetime(2024, 8, 1))
def convert_currency_endpoint(request):
if request.method == "GET":
serializer = CurrencyConversionSerializer(data=request.query_params)
Expand Down

0 comments on commit 76cfebd

Please sign in to comment.