Skip to content

Commit 82d9dfe

Browse files
committed
Pass authorize_url arguments by keyword
prawcore is making authorize_url's parameters keyword-only; pass them by name so the call keeps working.
1 parent 919aee9 commit 82d9dfe

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

praw/models/auth.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ def url(
131131
raise MissingRequiredAttributeException(msg)
132132
if isinstance(authenticator, UntrustedAuthenticator):
133133
return authenticator.authorize_url(
134-
"temporary" if implicit else duration,
135-
scopes,
136-
state,
134+
duration="temporary" if implicit else duration,
137135
implicit=implicit,
136+
scopes=scopes,
137+
state=state,
138138
)
139139
if implicit:
140140
raise InvalidImplicitAuth
141-
return authenticator.authorize_url(duration, scopes, state)
141+
return authenticator.authorize_url(duration=duration, scopes=scopes, state=state)

0 commit comments

Comments
 (0)