Commit 4d4d10f
authored
requests-oauthlib: add **kwargs to OAuth1Session.__init__ (#15980)
At runtime OAuth1Session.__init__ forwards **kwargs straight through to
OAuth1(...) (see requests_oauthlib/oauth1_session.py), which already has
extra keyword-only params typed in oauth1_auth.pyi (e.g. realm). The
OAuth1Session stub was missing the passthrough, so legitimate calls like
OAuth1Session(client_key=..., realm=...) failed with a spurious
"No parameter named realm" error. Sibling methods on the same class
(authorization_url, fetch_request_token, fetch_access_token) already use
a bare **kwargs for the same reason.1 parent 25d6821 commit 4d4d10f
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
0 commit comments