Skip to content

Commit 9481c97

Browse files
committed
fix: subscriptions with paypal
1 parent c5d8138 commit 9481c97

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

daras_ai_v2/paypal.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
import base64
44
from datetime import datetime
55
from time import time
6-
from typing import Any, Literal, Mapping, Type, TypeVar
7-
import typing
6+
from typing import Any, ClassVar, List, Literal, Mapping, Type, TypeVar
87

98
import requests
109
from furl import furl
@@ -19,13 +18,13 @@
1918

2019

2120
class PaypalResource(BaseModel):
22-
_api_endpoint: str | None = None
23-
_api_list_items_key: str | None = None
21+
_api_endpoint: ClassVar[str | None] = None
22+
_api_list_items_key: ClassVar[str | None] = None
2423

2524
id: str
2625
create_time: datetime
2726
update_time: datetime | None = None
28-
links: typing.List
27+
links: List
2928

3029
@classmethod
3130
def list(cls: Type[T], list_all: bool = False, **params) -> list[T]:

0 commit comments

Comments
 (0)