Skip to content

Commit e8db312

Browse files
committed
fix: use model_validate to satisfy pyright AnyUrl type check
Github-Issue: #2216
1 parent 3017e6a commit e8db312

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
@@ -7,10 +7,12 @@
77

88

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

1618

0 commit comments

Comments
 (0)