Skip to content

Commit 71d0f7f

Browse files
committed
fix: use model_validate to satisfy pyright AnyUrl type check
Github-Issue: #2216
1 parent c257c69 commit 71d0f7f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/shared/test_auth.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66

77

88
def _make_client(scope: str | None) -> OAuthClientInformationFull:
9-
return OAuthClientInformationFull(
10-
redirect_uris=["https://example.com/callback"],
11-
scope=scope,
12-
client_id="test-client",
9+
return OAuthClientInformationFull.model_validate(
10+
{
11+
"redirect_uris": ["https://example.com/callback"],
12+
"scope": scope,
13+
"client_id": "test-client",
14+
}
1315
)
1416

1517

0 commit comments

Comments
 (0)