Skip to content

Commit 83baf8f

Browse files
committed
fix: Fix return type for HttpServer#wait_for_code
1 parent 8639061 commit 83baf8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oauth2_cli_auth/http_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def get_code(self):
201201
def callback_url(self):
202202
return f"http://localhost:{self.server_port}"
203203

204-
def wait_for_code(self, attempts: int = 3, timeout_per_attempt=10) -> Optional[int]:
204+
def wait_for_code(self, attempts: int = 3, timeout_per_attempt=10) -> Optional[str]:
205205
"""
206206
Wait for the server to open the callback page containing the code query parameter.
207207

0 commit comments

Comments
 (0)