From 2a85ec45578f5f4423b64add3bd6d9953d80076d Mon Sep 17 00:00:00 2001 From: Jacky Lam Date: Mon, 13 Nov 2023 19:43:56 +0800 Subject: [PATCH] chore: Add typing to Keycloak admin connection (#496) * fix: Add typing to Keycloak admin connection * fix: Backwards compatibility for type hinting * fix: Use typing.Optional over typing.Union --- src/keycloak/keycloak_admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keycloak/keycloak_admin.py b/src/keycloak/keycloak_admin.py index 56b415e..1334df2 100644 --- a/src/keycloak/keycloak_admin.py +++ b/src/keycloak/keycloak_admin.py @@ -84,7 +84,7 @@ class KeycloakAdmin: PAGE_SIZE = 100 _auto_refresh_token = None - _connection = None + _connection: Optional[KeycloakOpenIDConnection] = None def __init__( self,