From 44b60b2784f113ad3e540bac8778193ec6aec1cd Mon Sep 17 00:00:00 2001 From: "Mr.Hoseini" Date: Wed, 13 May 2026 17:24:58 +0330 Subject: [PATCH 1/4] Update generate_token to use UNICODE_ASCII_CHARACTER_SET --- stubs/Authlib/authlib/common/security.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/Authlib/authlib/common/security.pyi b/stubs/Authlib/authlib/common/security.pyi index dc6786cbcb57..2f18ad42c3b3 100644 --- a/stubs/Authlib/authlib/common/security.pyi +++ b/stubs/Authlib/authlib/common/security.pyi @@ -2,5 +2,5 @@ from typing import Final UNICODE_ASCII_CHARACTER_SET: Final[str] -def generate_token(length: int = 30, chars: str = ...) -> str: ... +def generate_token(length: int = 30, chars: str = UNICODE_ASCII_CHARACTER_SET) -> str: ... def is_secure_transport(uri: str) -> bool: ... From 87cf9a690b9b082eba9c9e06bfd1b5bcbdbca339 Mon Sep 17 00:00:00 2001 From: "Mr.Hoseini" Date: Wed, 13 May 2026 22:16:57 +0330 Subject: [PATCH 2/4] Add is_secure_transport function signature --- stubs/Authlib/authlib/common/security.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stubs/Authlib/authlib/common/security.pyi b/stubs/Authlib/authlib/common/security.pyi index 2f18ad42c3b3..a576d2490bba 100644 --- a/stubs/Authlib/authlib/common/security.pyi +++ b/stubs/Authlib/authlib/common/security.pyi @@ -3,4 +3,5 @@ from typing import Final UNICODE_ASCII_CHARACTER_SET: Final[str] def generate_token(length: int = 30, chars: str = UNICODE_ASCII_CHARACTER_SET) -> str: ... + def is_secure_transport(uri: str) -> bool: ... From e169b2e6f42091224211ae086de8a230cefe7325 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 18:48:54 +0000 Subject: [PATCH 3/4] [pre-commit.ci] auto fixes from pre-commit.com hooks --- stubs/Authlib/authlib/common/security.pyi | 1 - 1 file changed, 1 deletion(-) diff --git a/stubs/Authlib/authlib/common/security.pyi b/stubs/Authlib/authlib/common/security.pyi index a576d2490bba..2f18ad42c3b3 100644 --- a/stubs/Authlib/authlib/common/security.pyi +++ b/stubs/Authlib/authlib/common/security.pyi @@ -3,5 +3,4 @@ from typing import Final UNICODE_ASCII_CHARACTER_SET: Final[str] def generate_token(length: int = 30, chars: str = UNICODE_ASCII_CHARACTER_SET) -> str: ... - def is_secure_transport(uri: str) -> bool: ... From e89b9f583e11b1527bb2f59becb1c76863885b56 Mon Sep 17 00:00:00 2001 From: "Mr.Hoseini" Date: Wed, 13 May 2026 22:45:46 +0330 Subject: [PATCH 4/4] Update stubs/Authlib/authlib/common/security.pyi Co-authored-by: Sebastian Rittau --- stubs/Authlib/authlib/common/security.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/Authlib/authlib/common/security.pyi b/stubs/Authlib/authlib/common/security.pyi index 2f18ad42c3b3..e57814e44167 100644 --- a/stubs/Authlib/authlib/common/security.pyi +++ b/stubs/Authlib/authlib/common/security.pyi @@ -2,5 +2,5 @@ from typing import Final UNICODE_ASCII_CHARACTER_SET: Final[str] -def generate_token(length: int = 30, chars: str = UNICODE_ASCII_CHARACTER_SET) -> str: ... +def generate_token(length: int = 30, chars: str = UNICODE_ASCII_CHARACTER_SET) -> str: ... # noqa: Y011 def is_secure_transport(uri: str) -> bool: ...