Skip to content

Commit 07af424

Browse files
test: update token storage protocol fixtures
1 parent 890fd15 commit 07af424

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs_src/oauth_clients/tutorial001.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ def __init__(self) -> None:
1717
async def get_tokens(self) -> OAuthToken | None:
1818
return self.tokens
1919

20-
async def set_tokens(self, tokens: OAuthToken) -> None:
20+
async def set_tokens(self, tokens: OAuthToken | None) -> None:
2121
self.tokens = tokens
2222

2323
async def get_client_info(self) -> OAuthClientInformationFull | None:
2424
return self.client_info
2525

26-
async def set_client_info(self, client_info: OAuthClientInformationFull) -> None:
26+
async def set_client_info(self, client_info: OAuthClientInformationFull | None) -> None:
2727
self.client_info = client_info
2828

2929

docs_src/oauth_clients/tutorial002.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ def __init__(self) -> None:
1414
async def get_tokens(self) -> OAuthToken | None:
1515
return self.tokens
1616

17-
async def set_tokens(self, tokens: OAuthToken) -> None:
17+
async def set_tokens(self, tokens: OAuthToken | None) -> None:
1818
self.tokens = tokens
1919

2020
async def get_client_info(self) -> OAuthClientInformationFull | None:
2121
return self.client_info
2222

23-
async def set_client_info(self, client_info: OAuthClientInformationFull) -> None:
23+
async def set_client_info(self, client_info: OAuthClientInformationFull | None) -> None:
2424
self.client_info = client_info
2525

2626

tests/interaction/auth/_harness.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ def __init__(self, *, client_info: OAuthClientInformationFull | None = None) ->
116116
async def get_tokens(self) -> OAuthToken | None:
117117
return self.tokens
118118

119-
async def set_tokens(self, tokens: OAuthToken) -> None:
119+
async def set_tokens(self, tokens: OAuthToken | None) -> None:
120120
self.tokens = tokens
121121

122122
async def get_client_info(self) -> OAuthClientInformationFull | None:
123123
return self.client_info
124124

125-
async def set_client_info(self, client_info: OAuthClientInformationFull) -> None:
125+
async def set_client_info(self, client_info: OAuthClientInformationFull | None) -> None:
126126
self.client_info = client_info
127127

128128

0 commit comments

Comments
 (0)