Skip to content

Commit ee16367

Browse files
committed
Update example
1 parent 6517174 commit ee16367

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: EXAMPLE.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,10 @@ Generated client class inherits from `AsyncBaseClient` and has async method for
156156
```py
157157
# graphql_client/client.py
158158

159-
from typing import Optional
159+
from typing import Optional, Union
160160

161161
from .async_base_client import AsyncBaseClient
162+
from .base_model import UNSET, UnsetType
162163
from .create_user import CreateUser
163164
from .input_types import UserCreateInput
164165
from .list_all_users import ListAllUsers
@@ -207,7 +208,7 @@ class Client(AsyncBaseClient):
207208
return ListAllUsers.parse_obj(data)
208209

209210
async def list_users_by_country(
210-
self, country: Optional[str] = None
211+
self, country: Union[Optional[str], UnsetType] = UNSET
211212
) -> ListUsersByCountry:
212213
query = gql(
213214
"""

0 commit comments

Comments
 (0)