Skip to content

Commit 29df94f

Browse files
committed
Represent overloaded constructor
1 parent c9a8a12 commit 29df94f

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed
Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1-
from typing import Any
1+
from typing import Any, overload
22

33
from braintree.graphql.unions.customer_recommendations import CustomerRecommendations
44

55
class CustomerRecommendationsPayload:
6-
session_id: str | None
7-
is_in_paypal_network: bool | None
8-
recommendations: CustomerRecommendations | None
6+
session_id: str
7+
is_in_paypal_network: bool
8+
recommendations: CustomerRecommendations
9+
@overload
910
def __init__(
1011
self,
11-
session_id: str | None = None,
12-
is_in_paypal_network: bool | None = None,
13-
recommendations: CustomerRecommendations | None = None,
14-
response: dict[str, Any] | None = None,
12+
session_id: None = None,
13+
is_in_paypal_network: None = None,
14+
recommendations: None = None,
15+
*,
16+
response: dict[str, Any],
17+
): ...
18+
@overload
19+
def __init__(
20+
self, session_id: str, is_in_paypal_network: bool, recommendations: CustomerRecommendations, response: None = None
1521
): ...

0 commit comments

Comments
 (0)