From 914b80d2e43cd7b4df353410f025e7b4388e5899 Mon Sep 17 00:00:00 2001 From: pctablet505 Date: Thu, 16 Jul 2026 21:56:39 +0530 Subject: [PATCH] Fix invalid **kwargs type annotation in Authenticate constructor **kwargs was annotated as Optional[Dict[str, Any]], which incorrectly types the whole kwargs mapping rather than the type of each value. The correct annotation for **kwargs is Any (the type of each keyword argument's value), not a Dict wrapper. Fixes #287 --- streamlit_authenticator/views/authentication_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streamlit_authenticator/views/authentication_view.py b/streamlit_authenticator/views/authentication_view.py index 0aea1b67..a185bae2 100644 --- a/streamlit_authenticator/views/authentication_view.py +++ b/streamlit_authenticator/views/authentication_view.py @@ -41,7 +41,7 @@ def __init__( validator: Optional[Validator] = None, auto_hash: bool = True, api_key: Optional[str] = None, - **kwargs: Optional[Dict[str, Any]] + **kwargs: Any ) -> None: """ Initializes an instance of Authenticate.