Fix: OAuth1 type hints to include realm parameter (#13579)

This commit is contained in:
Kanishk Pachauri
2025-03-05 20:54:47 +01:00
committed by GitHub
parent 3ac6c388c6
commit 91a90ed1d9
@@ -1,5 +1,6 @@
from _typeshed import Incomplete
from logging import Logger
from typing import Any
from oauthlib.oauth1 import Client
from requests.auth import AuthBase
@@ -27,7 +28,9 @@ class OAuth1(AuthBase):
client_class: type[Client] | None = None,
force_include_body: bool = False,
*,
realm: Incomplete | None = None,
encoding: str = "utf-8",
nonce: Incomplete | None = None,
timestamp: Incomplete | None = None,
**kwargs: Any, # passed to client_class's __init__
) -> None: ...