Skip to content

Commit e036125

Browse files
authored
Remove deprecation warning for use of AsyncClient instead ofSignedSession (#42)
1 parent f6ed1ba commit e036125

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/pythonxbox/authentication/manager.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,13 @@
2525
class AuthenticationManager:
2626
def __init__(
2727
self,
28-
client_session: SignedSession,
28+
client_session: SignedSession | httpx.AsyncClient,
2929
client_id: str,
3030
client_secret: str,
3131
redirect_uri: str,
3232
scopes: list[str] | None = None,
3333
) -> None:
34-
if not isinstance(client_session, (SignedSession, httpx.AsyncClient)):
35-
raise DeprecationWarning(
36-
"""Xbox WebAPI changed to use SignedSession (wrapped httpx.AsyncClient).
37-
Please check the documentation"""
38-
)
39-
40-
self.session: SignedSession = client_session
34+
self.session = client_session
4135
self._client_id: str = client_id
4236
self._client_secret: str = client_secret
4337
self._redirect_uri: str = redirect_uri

0 commit comments

Comments
 (0)